How do I find and view a TFS changeset by comment text?

后端 未结 11 1303
一整个雨季
一整个雨季 2020-12-04 05:55

With TFS I need to find a changeset by comment, and/or by developer. Maybe I\'m just blind today, but I don\'t see a simple way in the Source Control Explorer to do this ta

相关标签:
11条回答
  • 2020-12-04 06:25

    There's a Visual Studio add-in that does it now: http://visualstudiogallery.msdn.microsoft.com/3f65dee8-5a44-4771-929b-26531c482fbf.

    0 讨论(0)
  • 2020-12-04 06:32

    Find Changeset By Comment 2013 for Visual Studio 2013 http://developer.azurewebsites.net/2014/08/find-changeset-by-comment-2013-for-visual-studio-2013/

    0 讨论(0)
  • 2020-12-04 06:34

    I don't know a way to do it by Comment Text, but this will allow searching by developer:

    If you open the menu item File->Source Control->Find In Source Control->Changesets... (you must be in Source Control Explorer for this to be available). This will open the Find Changesets dialog. You can then search for change sets by Developer on a given source folder (or project).

    This will show you the comments, but you can't search by them. (Though you can sort the list by the comments and find the comment you are looking for that way.)

    On a side note, if you want to see the details of the changeset via this dialog you have to click the Details button. Double clicking on a changeset closes the dialog.

    0 讨论(0)
  • 2020-12-04 06:34

    I added tfpt searchcs from the TFS Power Tools as external tool in VisualStudio:

    • Command: C:\Program Files (x86)\Microsoft Team Foundation Server 2015 Power Tools\TFPT.EXE (or wherever you installed your TFS Power Tools)
    • Arguments: searchcs /collection:http://tfsserver:8080/tfs $(SolutionDir) (the solution path is converted to the server path)
    • Initial Directory: c:\path\to\your\vs\IDE (unless the tf.exe is in your path (what is not the case by default) this ensures you can view the changeset details from the search dialog, for it runs tf.exe)
    0 讨论(0)
  • 2020-12-04 06:39

    With the Power Tools installed:

    tf history $/ -r | ? { $_.comment -like '*findme*' }
    
    0 讨论(0)
  • 2020-12-04 06:39

    EASY WAY and no 3rd party apps/add-ons needed:

    1. Open Source Control Explorer
    2. "View History" from the root of TFS server
    3. Scroll to the bottom (it's fast with hitting "End" button continuously)
    4. Select all records, copy
    5. Open Excel and paste

    Now the Excel will allow you to search through comments (Excel's a native app, don't argue..).

    0 讨论(0)
提交回复
热议问题