TFS annotate/blame summary report for a project

前端 未结 6 1618
Happy的楠姐
Happy的楠姐 2020-12-10 12:43

In Team Foundation Server, I know that you can use the Annotate feature to see who last edited each line in a particular file (equivalent to \"Blame\" in CV

6条回答
  •  不知归路
    2020-12-10 13:02

    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.

提交回复
热议问题