How do I find and view a TFS changeset by comment

2019-01-12 16:24发布

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 task?

标签: tfs
11条回答
做个烂人
2楼-- · 2019-01-12 16:28
再贱就再见
3楼-- · 2019-01-12 16:30

You can use the command line client: pipe the output of tf history to a file and then use whatever search program you prefer.

查看更多
祖国的老花朵
4楼-- · 2019-01-12 16:32

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..).

查看更多
疯言疯语
5楼-- · 2019-01-12 16:35

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.

查看更多
霸刀☆藐视天下
6楼-- · 2019-01-12 16:38

If you have TFS Power Tools installed, you can run this in a command prompt:

tfpt searchcs

to get a GUI window with options to search by committer and comment text. I'm using TFS Power Tools (March 2011 version) and TFS 2010.

查看更多
不美不萌又怎样
7楼-- · 2019-01-12 16:39

With the Power Tools installed:

tf history $/ -r | ? { $_.comment -like '*findme*' }
查看更多
登录 后发表回答