通过合并查看 TFS 签入历史记录?
在 TFS 中,当您将分支 A 合并到分支 B 并签入时,您会在 B 上获得一个变更集(通常带有“合并 A->B”之类的注释)。
这意味着 B 没有 A 的任何签入历史记录。因此,如果有人在分支 A 上创建了一个新文件,您无法分辨是谁从分支 B 中创建了该文件。如果有人在 A 上更新了文件,您就无法知道是谁在分支 A 上创建了新文件。 t 告诉谁从分支 B 进行了更新。
有没有办法跨分支查看这种详细的变更集历史记录? 某种电动玩具,或者第三方工具,或者什么?
更新:TFS Power Toy tfpt History /followbranches 工具不会“扩展合并”,它只会“扩展分支”,因此无法解决此问题。
In TFS when you merge branch A to branch B and checkin, you get a single changeset on B (typically with a comment like "merged A->B").
This means B doesn't have any of the checkin history from A. So if someone created a new file on branch A, you can't tell who created it from branch B. And if someone updated a file on A, you can't tell who did the update from branch B.
Is there any way to see this kind of detailed changeset history across branches? Some kind of power toy, or third party tool, or anything?
Update: The TFS Power Toy tfpt history /followbranches tool does not "expand merges," it only "expands branches" and therefore doesn't solve this problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
TFS 2008 动力玩具确实附带了 tf History /followbranches 命令。 但该命令不会扩展合并。
它所做的只是向您显示创建分支 B 之前 A 的更改集历史记录。 它没有向您显示的是从 A -> 合并了哪些更改集。 B 创建分支后。
换句话说,我想看到的是在源分支上进行的所有更改集,然后作为合并操作的一部分应用于目标分支。
The TFS 2008 power toys does come with the tf history /followbranches command. But that command doesn't expand merges.
All it does is show you the change set history from A before branch B was created. What it doesn't show you is what change sets were merged from A -> B after the branch was created.
In other words, what I want to see is all the change sets that were made on a source branch and then applied to a target branch as part of merge operation.
TFS SideKicks 是补充 TFS 默认工具的另一个好工具。
TFS SideKicks is another good tool for supplementing TFS default tools.
现在“tf merges”和“tf merges /f:detailed”提供了最完整的合并跟踪信息。 但是,它们只是命令行。 据我所知,唯一尝试提供 GUI 的第三方工具是 TFS Sidekicks。
这在 TFS 2010 中变得更加容易。请参见屏幕截图:
Right now 'tf merges' and 'tf merges /f:detailed' provide the most complete merge tracking information. However, they are command-line only. And the only 3rd party tool I know of that attempts to provide a GUI is TFS Sidekicks.
This gets a lot easier in TFS 2010. See screenshots at:
TFS 2010 将包含对此的支持。
Brian Harry 在本演示文稿中谈到了这一点。
现在,您将能够在更改合并到不同的分支后查看更改的来源以及更改者。
TFS 2010 will include support for this.
Brian Harry talks about it in this presentation.
You will now be able to see where a change originated and who made it after the change has been merged to a different branch.
Microsoft Gallery 中存在“TFS Branched History”插件:
http://visualstudiogallery .msdn.microsoft.com/7d4f37b6-f9a4-44c6-b0a0-994956538a44
插件确实将“分支历史记录”按钮插入到源代码管理资源管理器 (TFS) 的上下文菜单中
该按钮图标带有时钟,就像标准“历史记录”一样但带有蓝色箭头:
如果单击“Branched History”,将打开新窗口,并且 Path 属性将被设置为当前源代码管理资源管理器路径:
单击“运行查询”以在“历史记录”中获取结果选项卡:
从上下文菜单中,您可以查询标准变更集详细信息和比较文件(文件夹)对话框。
"TFS Branched History" plugin exists at Microsoft Gallery:
http://visualstudiogallery.msdn.microsoft.com/7d4f37b6-f9a4-44c6-b0a0-994956538a44
Plugin does insert "Branched History" button into the context menu of Source Control Explorer (TFS)
The button icon is with clock like standard "History" but with blue arrow:
If you click "Branched History", new window will be opened and Path property will be set to the current Source Control Explorer path:
Click "Run query" to get results at the "History" tab:
From context menu you can query standard Changeset Details and Compare File (Folder) dialogs.
我认为您会发现 TFS Sidekicks 很有帮助,尤其是历史记录区域:
History Sidekick 应用程序窗格提供以下功能:
Team Foundation Sidekicks
I think you would find TFS Sidekicks helpful, especially the history area:
History Sidekick application pane provides the following features:
Team Foundation Sidekicks
可能想尝试 TFS Follow 分支历史记录工具:
codeplex.com/TFSBranchHistory" rel="nofollow noreferrer">http://www.codeplex.com/TFSBranchHistory
Might want to try the TFS Follow branch History tool:
http://www.codeplex.com/TFSBranchHistory