3

我有一个使用开箱即用的 MSF for Agile 5.0 流程模板创建的现有团队项目。此后,我们已经对定制的 Microsoft Scrum 1.0 模板进行了标准化。我刚刚创建了一个新的团队项目,使用我们当前的模板,基于现有的项目。在原始团队项目中将不再进行任何工作。

此现有团队项目使用 ALM Ranger 分支指南中的“基本”分支模式:

原始团队项目分支层次结构

创建新项目时,我选择通过从原始项目分支来启动新项目。结果不是我想的那样:

新团队项目分支层次结构

我想要一个从“Team Project 2/Main”分支的“Team Project 2/Development/Development”分支,与“Release”相同。这给我留下了两个问题:

  1. 为了获得我想要的结构,我应该做些什么不同的事情吗?
  2. 我现在可以做些什么来将新的(坏的)结构更改为我想要的结构吗?
4

2 回答 2

2

要获得您想要的结构,我认为您需要执行以下操作:

  • 使用空的源代码控制区域而不是分支创建新的团队项目。
  • 然后在 TP1 中,手动将 Main 分支到 TP2/Main (或“登台”然后进入 main )
  • 然后为新的 Main 创建 Development/Dev 和 Release/Release 的分支

这不会迁移旧的 Dev 和 release 分支。要将它们的任何更改转移到您的新结构中,您必须在整个过程之前先将合并重新合并到 TP1\Main。显然,如果您想保持旧的“Release”冻结,这有点不太理想。在这种情况下,您可能希望明确地将其分支到新的 TP2/Release/Release 区域,并注意它来自旧项目。然后,您可以仅在较新的版本上建立与 TP2/Main 的新分支关系。

至于“我现在有什么可以做的吗?” 我认为答案是,不,无非是一些非常激烈的事情,比如重新开始这个过程,或者只是关闭现有的分支并使用上面的建议重新分支。

于 2011-10-20T16:16:08.070 回答
1

To achive the structure you want, after create the new Team Project, you have to perform a Baseless Merge. Baseless merge is used to merge branches that don´t have relationship. After you perform a baselees merge, Tfs will establishe a relationship between the branches.

Note: In the "View Hierarchy" window you won´t be able to see the connection link between the branches, but througth the "Source Control Merge Wizard", you will be able to select the branch and merge.

In your case, you can perform a baselees merge between "xxx2/Main" and "xxx2/Developement/Developement" and another one between "xxx2/Main" and "xxx2/Release/Release". After performing the baseless merge, TFS will create the relationship between the branches, and you´ll get your structure.

编辑 1:“源代码管理合并向导”== 在“源代码管理资源管理器”中 > 右键单击​​所需的分支 > 合并和合并 > 合并。在“目标分支”中,您将能够选择分支。

于 2012-04-26T16:00:43.613 回答