SVN branch of a branch

2019-02-22 02:45发布

Our code repository includes: * trunk, * branch A - starts from trunk, * branch B - starts from branch A,

The programer that works on branch A wants to reintegrate it into the trunk, and continue working on the trunk only.

We do not want to reintegrate branch B into branch A yet.

Is it possible to have branch B relate to the trunk, instead of to branch A, so that the two programmers can continue to work separately on trunk and on branch B?

(I hope my question is clear)

标签: svn branch
2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-02-22 03:17

As I see it, you have following situation:

pic1

And you are going to do merge from A to trunk:

enter image description here

As you see, B has started from A and has its content. It cannot be changed to start from another codebase because it already exists. All you can do is merge changes from trunk to B after you have merged changes from A to trunk. In this case branch B will have actual content of both trunk and branch A:

enter image description here

查看更多
祖国的老花朵
3楼-- · 2019-02-22 03:26

Both trunk and all the branches are just some folders with some files in them. You are allowed to merge anything with anything else. So, the answer is that there's no exact concept of "relation", but one is not actually needed.

查看更多
登录 后发表回答