可以在TFVC孤儿分支中重命名主分支吗? [英] Can Renaming the Main Branch in TFVC Orphan Child Branches?

查看:72
本文介绍了可以在TFVC孤儿分支中重命名主分支吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在TFS 2015中使用开发和发布分支隔离策略。我被要求重命名主分支。从该帖子(
在源代码管理中重命名分支时,它将删除前一个分支并创建一个新分支,因此这就是丢失历史记录的原因。但是您也可以通过显示已删除的项目来查看您以前的主分支。





但是,强烈建议您不要这样做,除非确实有必要。例如,一旦重命名,跟踪变更集是您的Branching层次结构视图中的真正挑战。当您在子分支(例如开发)中跟踪变更集时,它位于具有新的重命名主分支的层次结构中。但这也会用虚线显示与旧主分支的关联。


I'm currently using the Development and Release Branch Isolation strategy with TFS 2015. I've been asked to rename the Main branch. As I've learned from this posting (Rename TFS 2013 Branch), rename is really branch and delete. Is there a risk of orphaning the Development and Release branches, along with their histories, if I do such a thing? Thanks in advance.

解决方案

It won’t. You can still view the hierarchy of your branch. The renamed branch will replace your previous branch in the hierarchy.You won't lose the history of the Development and Release branch.Howerver,the history of your previous main branch will be "lost". When you Rename a branch in Source Control, it will delete the previous one and create a new one , so that's why lost the history.But you can also view your previous main branch by making deleted items visible.

However, I strongly suggest you don’t do it, unless this is really necessary. For instance, once renamed, tracking a changeset is a real challenge in your Branching hierarchy view. When you tracking a changset in your child branch such as develop,it's in the hierarchy with the new renamed main branch. But it will also shows the associate with old main branch by dotted line .

这篇关于可以在TFVC孤儿分支中重命名主分支吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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