简体   繁体   中英

SVN branch of a branch

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)

As I see it, you have following situation:

PIC1

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

在此输入图像描述

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 :

在此输入图像描述

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM