Reputation: 3281
I have a project in the 'trunk' folder. When I needed to create a branch, I copied the contents of the 'trunk' folder into a new 'branch' folder. As a result, the directory structure looks like this.
Now I want to merge the contents of the branch and the trunk into the trunk folder. How can I achieve that?
I tried by selecting 'Merge two different trees' from the Merge menu of tortoise SVN.
I entered the trunk URL in the FROM field and the branch URL in the TO field.
However, it gives the error 'Tree Conflict' for every folder because the names of the folders in 'Trunk' and 'Branch1' are the same. I want the contents of these folders to merge.
Upvotes: 2
Views: 9526
Reputation: 97282
If Branch1
is modified tree of Trunk
and you want merge changes from branch to trunk, you have to:
Upvotes: 0
Reputation: 18218
Checkout your trunk and your branch in different directories and perform your merge with WinMerge.
Then consider removing your branch and recreating it again properly.
Upvotes: 1
Reputation: 5163
I copied the contents
You should use create branche function (branch/tag in windows context menue when using tortoiseSVN), so the branch and trunk will know there relationship. This is imported to avoid tree conflicts
I tried by selecting 'Merge two different trees'.
Better use 'Reintegrate a branch' (best for your purpose) or 'Merge a range of revision'.
Upvotes: 2