TFS reparent 分支 - 仅显示的选项是当前父级和“无父级"; [英] TFS reparent branch - only options shown are current parent and "no parent"

查看:17
本文介绍了TFS reparent 分支 - 仅显示的选项是当前父级和“无父级";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为在 TFS 中重新创建分支的重点是,当我有充分的理由这样做时,我可以设置任何我希望的父分支.

I thought the point of branch reparenting in TFS was I could set any parent branch I wished when I have a good reason to do so.

然而,当我考虑将一个特性分支重新设置为属于不同的发布分支时,显示的对话框只包含两个项目:

However when I look at reparenting a feature-branch to belong to a different release branch, the dialog shown only contains two items:

  • 当前的父分支
  • 没有父母"

这似乎不是很有用.我是否误解了该功能,或者我可以做些什么来重新设置其他分支的父级?

This doesn't seem very useful. Am I misunderstanding the feature or is there something I can do to reparent to other branches?

推荐答案

是的,这是正常现象.通常,您只会看到父分支,无父"和子分支.

Yes, it's the normal phenomenon. Usually, you will only see the parent branch," no parent" and child branch.

如果要重父到其他分支,必须先在两个分支之间建立关系.

If you want to reparent to other branch, you must set a relation ship between the 2 branches first.

解决办法是baseless merging:tf merge/recursive/baseless new target branch child branch 之后,你会在对话框中看到新的目标分支.更多详细信息和步骤请参阅此博客:TFS 源代码控制分支的父级.

The solution is baseless merging: tf merge /recursive /baseless new target branch child branch After that , you will see the new target branch in the dialog. More details info and steps please refer this blog: Reparent of a TFS Source Controlled Branch.

这篇关于TFS reparent 分支 - 仅显示的选项是当前父级和“无父级";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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