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:44

Alternatively, without having to install power tools, the following command will work if your looking for the search term findme.

Windows: tf history "$/Team Project/Development" /noprompt /recursive | findstr findme

Linux: tf history "$/Team Project/Development" /recursive | grep findme

NB. Please thank this guy if you found this useful.

查看更多
孤傲高冷的网名
3楼-- · 2019-01-12 16:44

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)
查看更多
你好瞎i
4楼-- · 2019-01-12 16:46
混吃等死
5楼-- · 2019-01-12 16:51

To see the checkins for a team member:

In team explorer, navigate to the Team Project, navigate to Team Members, right click the team member for who you want to see the changesets, and select "Show CheckIn History".

查看更多
爷的心禁止访问
6楼-- · 2019-01-12 16:54

I was able to do this in the TFS web portal code section.

Navigate to TFS in your browser, go to code, click on changesets, then advanced search. You can filter by user and date range. You can not search by comment, but if you have a general date range in mind then you can filter it down then use the browsers search (ctrl + f).

查看更多
登录 后发表回答