TFS 2013: How to get changeset comments into a text file?

删除回忆录丶 提交于 2019-12-10 10:37:49

问题


I'd like to get all changeset comments into a simple text file (to generate a changelog automatically). I tried doing this by querying TFS tables in SQL, but it's an undocumented black box...

I read one post to run something like this:

tf history $/ -r

I got the latest TFS 2013 power tools, but that includes "tfpt" instead of "tf". "tfpt searchcs" opens a gui even if given command line arguments.

Does anyone know how to accomplish what I'm requesting?

EDIT: I was referring to this How do I find and view a TFS changeset by comment text?, and the accepted answer states

With the Power Tools installed:

tf history $/ -r | ? { $_.comment -like findme }

So I assumed power tools had to be installed... Apparently however, it seems tf.exe is INCLUDED with Visual Studio as it's located in

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE

(for me at least). Anyway, I tried running:

tf history $/myprojectpath -r

and that too, opens a ui... on a whim however, I tried to redirect output:

tf history $/myprojectpath -r >> file.txt

and that seemed to do exactly what I needed...

Asked and answered... sorry gang :/


回答1:


I was referring to How do I find and view a TFS changeset by comment text?, and the accepted answer states

With the Power Tools installed:

tf history $/ -r | ? { $_.comment -like findme }

So I assumed power tools had to be installed... Apparently however, it seems tf.exe is INCLUDED with Visual Studio as it's located in

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE

(for me at least). Anyway, I tried running:

tf history $/myprojectpath -r

and that too, opens a ui... on a whim however, I tried to redirect output:

tf history $/myprojectpath -r >> file.txt

and that seemed to do exactly what I needed...

Asked and answered... sorry gang :/



来源:https://stackoverflow.com/questions/21123414/tfs-2013-how-to-get-changeset-comments-into-a-text-file

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