Export TFS 2010 History to Excel or Text Document

前端 未结 5 1499
忘掉有多难
忘掉有多难 2020-12-28 16:24

How do you export history from TFS 2010 that includes the user, date and the complete comment (not truncated)?

For example, in Team Explorer: right-click team member

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 16:39

    You have 3 options here:

    1. Parse output from the tf.exe history command.
    2. Write code against the TFS client object model.
    3. Write a query directly against the TFS database.

    Number 1 is probably the easiest so I'll start with that. You can read the documentation for the tf history command here. In order to get the comment non-truncated you will need to use the /format:detailed option. If you want all of the history, try something like this:

    tf history $/ /r /format:detailed /noprompt

    If you are looking for all of the changesets for a given user, try this:

    tf history $/ /r /format:detailed /user: /noprompt

    That will produce a fair amount of text output that you would need to parse to be able to put it into excel. Give that a shot and if you are interested in options 2 or 3 let me know and I can give you more details.

提交回复
热议问题