TFS 2013:如何将变更集注释放入文本文件? [英] TFS 2013: How to get changeset comments into a text file?

查看:17
本文介绍了TFS 2013:如何将变更集注释放入文本文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将所有变更集注释放入一个简单的文本文件中(以自动生成变更日志).我尝试通过在 SQL 中查询 TFS 表来做到这一点,但它是一个未公开的黑匣子...

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

我获得了最新的 TFS 2013 电动工具,但其中包含tfpt"而不是tf".即使给定命令行参数,tfpt searchcs"也会打开一个 gui.

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?

我指的是这个 如何通过评论文本查找和查看 TFS 变更集?,以及接受的答案状态

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

安装电动工具后:

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

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

所以我认为必须安装电动工具......然而,显然,tf.exe 似乎包含在 Visual Studio 中,因为它位于

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

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

推荐答案

我指的是 如何通过评论文本查找和查看 TFS 变更集?,以及接受的答案状态

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 }

所以我认为必须安装电动工具......然而,显然,tf.exe 似乎包含在 Visual Studio 中,因为它位于

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

这篇关于TFS 2013:如何将变更集注释放入文本文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆