获取 TFS 工作项的所有更改文件 [英] get all changed files for a TFS workitem

查看:35
本文介绍了获取 TFS 工作项的所有更改文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio 2012 和 TFS 2013.是否可以获得受工作项影响的文件列表?目前,使用团队"菜单下的查询编辑器",我只能获取为工作项提交的所有更改,但对于代码审查,直接获取受影响文件的列表会很有趣.

I am working with Visual Studio 2012 and TFS 2013. Is it possible to obtain the list of files affected by a workitem? Currently, using the Query Editor under Team menu, I am only able to get all the changests commited for a workitem but for a code-review it would be interesting to get also directly the list of affected files.

推荐答案

尝试使用 TFS Sidekicks.您可以搜索工作项,它会给您一个统一的视图.

Try using TFS Sidekicks. You can search for work item and it will give you a consolidated view.

  1. http://www.attrice.info/cm/tfs/ 安装助手适用于您的相关 TFS 版本
  2. 打开 side kicks 并将其连接到 TFS(通常的 tfs 对话)
  3. 点击工具 -> Code Review Sidekick
  4. 单击工作项并选择适当的项目和查询(TFS 资源管理器工作项查询).或者,您可以按变更集搜索
  5. 选择合适的工作项.
  6. 这将显示该工作项的所有更改
  7. 所以这里的目标是将所有更改与文件进行比较,从其第一次签入此工作项之前的状态和工作项的最后签入.即折叠所有更改
  8. 右键单击您正在查看的文件,该文件与最高变更集编号,然后选择与以前的比较(不在查看)'
  9. 这将显示您的 VS 配置的完全不同差异工具.
  10. 如果文件是新的并且有多个签入,请选择具有最大变更集的一个,然后选择与最旧的比较"在视图中'
  1. Install sidekicks from http://www.attrice.info/cm/tfs/ for your relevant TFS version
  2. Open side kicks and connect it to TFS (usual tfs dialogue)
  3. Click Tools -> Code Review Sidekick
  4. Click by Work Items and select the appropriate Project and Query (TFS explorer workitem query). Alternatively, you can search by changesets
  5. Select the appropriate work item.
  6. This will show all the changes for that workitem
  7. So the goal here, you want to compare all of the changes to a file, from its state before the first checkin of this workitem and the last checkin of the workitem. i.e. collapse all of the changes
  8. Right click the file you are reviewing, the one associates with the highest changeset number, and select 'compare with previous (not in view)'
  9. This will show you the complete difference in your VS configured diff tool.
  10. If the file is new and has multiple checkins, select the one with the maximum changeset it, and select 'compare with oldest in the view'

这篇关于获取 TFS 工作项的所有更改文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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