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
There's a Visual Studio add-in that does it now: http://visualstudiogallery.msdn.microsoft.com/3f65dee8-5a44-4771-929b-26531c482fbf.
Find Changeset By Comment 2013 for Visual Studio 2013 http://developer.azurewebsites.net/2014/08/find-changeset-by-comment-2013-for-visual-studio-2013/
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.
I added tfpt searchcs
from the TFS Power Tools as external tool in VisualStudio:
C:\Program Files (x86)\Microsoft Team Foundation Server 2015 Power Tools\TFPT.EXE
(or wherever you installed your TFS Power Tools)searchcs /collection:http://tfsserver:8080/tfs $(SolutionDir)
(the solution path is converted to the server path)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
)With the Power Tools installed:
tf history $/ -r | ? { $_.comment -like '*findme*' }
EASY WAY and no 3rd party apps/add-ons needed:
Now the Excel will allow you to search through comments (Excel's a native app, don't argue..).