Reputation: 42394
How to resolve tree conflict in current scenerio.
C:\DevBranch
C:\MyBranch
I updated both branches. Edited MyBranch and then committed back. Now want to merge those changes into DevBranch. When I am doing the merge I am getting 'Tree Conflicts'
The last merge operation tried to add the file 'abc.def', but it was already added locally.
How do you want to resolve this conflict?
Keep the file from repository
Keep the local file
How can I resolve?
Upvotes: 96
Views: 185592
Reputation: 9621
What you can do to resolve your conflict is
svn resolve --accept working -R <path>
where <path>
is where you have your conflict (can be the root of your repo).
Explanations:
resolve
asks svn
to resolve the conflictaccept working
specifies to keep your working files-R
stands for recursiveEDIT:
To sum up what was said in the comments below:
<path>
should be the directory in conflict (C:\DevBranch\
in the case of the OP)svn switch
commandSwitch working copy to new branch/tag
option at branch creationUpvotes: 182
Reputation: 1
Basically, tree conflicts arise if there is some restructure in the folder structure on the branch.
You need to delete the conflict folder and use svn cleanup
once.
Hope this solves your conflict.
Upvotes: -4