通过合并查看 TFS 签入历史记录?

发布于 2024-07-04 23:51:57 字数 349 浏览 6 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

怪我鬧 2024-07-11 23:51:57

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.

半步萧音过轻尘 2024-07-11 23:51:57

TFS SideKicks 是补充 TFS 默认工具的另一个好工具。

TFS SideKicks is another good tool for supplementing TFS default tools.

独﹏钓一江月 2024-07-11 23:51:57

现在“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:

温折酒 2024-07-11 23:51:57

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.

挥剑断情 2024-07-11 23:51:57

Microsoft Gallery 中存在“TFS Branched History”插件:

http://visualstudiogallery .msdn.microsoft.com/7d4f37b6-f9a4-44c6-b0a0-994956538a44

插件确实将“分支历史记录”按钮插入到源代码管理资源管理器 (TFS) 的上下文菜单中

该按钮图标带有时钟,就像标准“历史记录”一样但带有蓝色箭头:

Branched History Button

如果单击“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:

Branched History Button

If you click "Branched History", new window will be opened and Path property will be set to the current Source Control Explorer path:

enter image description here

Click "Run query" to get results at the "History" tab:

enter image description here

From context menu you can query standard Changeset Details and Compare File (Folder) dialogs.

萌︼了一个春 2024-07-11 23:51:57

我认为您会发现 TFS Sidekicks 很有帮助,尤其是历史记录区域:

History Sidekick 应用程序窗格提供以下功能:

  • 查看包含文件和文件夹的版本控制树(类似于源代码管理资源管理器)
  • 按名称搜索项目(文件或文件夹)并选择找到的项目版本控制树中的项目
  • 查看所有用户或按用户筛选的选定项目历史记录
  • 将历史记录列表导出到 CSV 文件
  • 比较历史记录中选定的文件版本
  • 查看选定项目属性和挂起的更改
  • 查看选定项目分支树和选定分支属性
  • 查看选定项目合并历史记录; 可以单独查看以所选项目作为合并目标(合并到)或以所选项目作为源(合并自)执行的所有合并
  • 比较历史记录中的合并目标和源文件版本
  • 在树视图中查看所选项目合并候选; 可以从列表中选择单个合并源
  • 将合并候选文件版本与目标文件的最新版本进行比较
  • 查看为所有用户或按用户过滤的所选项目标签; 显示的信息包括标签中的项目版本
  • 比较两个标签之间的文件版本
  • 查看包含变更集的所有列表中支持的变更集详细信息

Team Foundation Sidekicks

I think you would find TFS Sidekicks helpful, especially the history area:

History Sidekick application pane provides the following features:

  • View version control tree with files and folders (similar to Source Control Explorer)
  • Search item (file or folder) by name and select found item in version control tree
  • View selected item history either for all users or filtered by user
  • Export history list to CSV file
  • Compare file versions selected in history
  • View selected item properties and pending changes
  • View selected item branches tree and selected branch properties
  • View selected item merge history; it is possible to view separately all merges performed with selected item as a merge target (merges to) or with selected item as a source (merges from)
  • Compare merge target and source file versions in history
  • View selected item merge candidates in a tree view; it is possible to select single merge source from the list
  • Compare merge candidate file version with latest version of target file
  • View selected item labels either for all users or filtered by user; the information displayed includes item version in label
  • Compare file versions between two labels
  • View changeset details supported in all lists containing changesets

Team Foundation Sidekicks

べ繥欢鉨o。 2024-07-11 23:51:57

可能想尝试 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文