如何获取与工作项相关的所有更改的差异?
TFS 能够显示文件夹中修改的所有代码。在源代码资源管理器中,可以单击列表中的每个代码模块来获取该模块的差异。
(右键单击源代码资源管理器中的文件夹,选择历史记录中的历史记录,选择 2 个变更集,然后选择比较)
我的解决方法:到目前为止,我能做的最好的事情就是查看工作项中列出的变更集,然后将这些数字插入源代码浏览器中的“比较”查询。
您不能在工作项的“链接”部分中执行此操作,因为它的设置方式与源代码资源管理器不同。
并且源代码资源管理器中的查询工具不允许您查询与单个工作项关联的所有更改。
我正在尝试找到一种可以从一个地方执行此操作的方法,以便能够将所有代码作为统一差异(与单个工作项相关联)进行审查。
那么我的解决方法是唯一真正的方法吗?
开始赏金。是否有可以创建的查询?
TFS has the ability to display all of the code modified in a folder. In the Source Code explorer, one can click on each code module in the list to get the diff for that module.
(Right-click on a folder in Source Code explorer, Select history in History Select 2 changesets and select Compare)
my workaround: The best I can do so far is to look at the changesets listed in a work item and go plug those numbers in the "compare" query in the source code explorer.
You can't do that in the "links" section of a work item because it is not set up the same way as the source code explorer.
and the query tool in source code explorer won't let you query all changes associated with a single work item.
I'm trying to find a way where I can do this from a single place, so as to be able to review all code as a unified diff (associated with a single work item).
So is my workaround the only real way of doing this?
Starting a bounty. Is there a Query that can be created?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我需要同样的东西,但找不到方法来做到这一点,所以我自己写了一个小工具来做到这一点。如果某个工作项的文件被多次编辑,该工具可让您查看该工作项的关联变更集已触及的所有文件,并获取这些文件的最新和最早版本,以便您进行比较。
您可以在此处获取源代码如果你愿意的话。它尚未完成,但已经达到了目的。
I needed the same thing but couldn't find a way to do it so I wrote myself a little tool to do that. If a file is edited many times for a work item, the tool lets you see all the files the work item's associated changesets have touched and reach the latest and earliest versions of those files so you can compare.
You can the source code here if you like. It is not complete yet but does the trick.
注释 功能可能会有所帮助,但您必须按照文件,而不是每个文件夹。
The annotate function might help, but you'll have to do it per file, not per folder.