TFS annotate/blame summary report for a project

给你一囗甜甜゛ 提交于 2019-11-28 10:56:42

It's easy enough to use the "tf.exe history" command recursively across a directory of files in TFS. This will tell you who changed what files.

However what you're after is a little bit more than this - you want to know if the latest versions of any files have lines written by a particular user.

The Team Foundation Power Tools ship with a command-line version of annotate called "tfpt.exe annotate". This has a /noprompt option to direct the output to the console, but it only outputs the changeset id - not the user name.

You could also use the TFS VersionControl object model to write a tool that does exactly what you need.

If you install the TFS Power tools (at least for VS2005); it's called annotate.

It might be part of VS2008...

You can use TFS Analysis Cube to see generate a code churn report, which I believe is something you would like.

Jeroen Wiert Pluimers

Annotate is now part of Visual Studio (I think it was introduced in VS 2010).

Docs

I'm writing an answer to an 8 year old question :). Its not really a full answer, but a suggestion to look into excel reports for TFS.

TFS2013 / 2015 on prem has something has an excel report that can be used to visualize Code Churn.

In VS open team explorer then select "Documents" then explode "Excel Reports". I believe Code Churn report has something like discussed. The report is made by some default project template so I think tfs2013 on prem just creates it.

Code Churn Excel Report VS2015 https://msdn.microsoft.com/en-us/library/dd695782.aspx

I had very similar requirement to get details of particular attribute in a file e.g. who added, when, related work items etc.; Following GitHub project is having implementation to get required details and required minimal changes to work with multiple files or project -

SonarQube SCM TFVC plugin

It requires analysis to be executed from Windows machines with the Team Foundation Server Object Model installed (download for TFS 2013).

This blog post is also having good explaination and sample application -

TFS SDK: Connecting to TFS 2010 & TFS 2012 Programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!