Reputation: 1
I have these directories as well:
Trunk contains:
Also i have two branches - A(from trunk), B(from trunk)
Branch A modifications:
-common.txt:
'trunk
(+) A'
- add aFile.txt
Branch B modifications:
-common.txt:
'trunk
(+) B'
- add bFile.txt
All, what i need is create one more brunch (AB), whitch would be contain all changes from branch A, and from branch B. I mean:
Branch AB contains:
- common.txt:
'trunk
A
B'
- trunkFile
- aFile
- bFile
What i done: I created a new branch AB from trunk. Then make merge (merge two different trees) on AB, in FROM i selected branch A, in TO i selected branch B.
The result was bad:
You may say, that i was wrong to choose Merge two diferent trees, that this tast is for Merge a range of revisions. But if it's so, how can i use Merge two different trees, except of using as reintegration a branch to trunk. Thnks!
Upvotes: 0
Views: 1089
Reputation: 504
This can be achieved in 2 ways
First one merge branch A with trunk (reintegrate a branch) and then merge branch B with trunk and then create a branch AB from Trunk
OR
Assuming that you have already created a branch AB without merging branch A and branch B to trunk. Merge branch A to branch AB using Merge two different trees option and in the From URL you should be specify branch AB URL and on To URL you should specify branch A URL and then merge branch B to branch AB using Merge two different trees option and in the From URL you should be specify branch AB URL and on To URL you should specify branch B URL
Upvotes: 1