I\'m trying to reintegrate a development branch into the trunk in my Subversion 1.5 repository. I merged all the changes from the trunk to the development branch prior to th
I stopped getting these problems when I started using the -r option to svn merge command and did not attempt to do the --reintegrate until after I had merged without it. I'm using svn 1.6.1.
Here's what I do:
1. when merging from branch to trunk or trunk to branch, I use the -r option like this:
cd branchWorkArea/topDir
svn merge -r:HEAD [otheroptions] svn://svn/project/trunk/topDir
when I have resolved any conflicts and test my code, I commit the merge to the branch and then merge the branch to the trunk using the same basic options (especially -rBranchPoint:HEAD)
when the trunk has been tested and committed, then I use the --reintegrate option to the close off the branch. Make sure you use the -rbranchPoint:HEAD option on it too.
For other options, I always use
--depth infinity (defaults to infinity in 1.6.2 but not before)
-x -b -x -w --ignore-eol-style
Maybe, I've just been lucky but things sure seem to work better.
To find the branch point for a branch, you do a svn log --stop-on-copy then look at the to very last revsion -- it will be the svn copy that created the branch.
To do this on linux, I do something like this:
svn log --stop-on-copy svn://svn/project/trunk/topDir |
grep '^r' | tail -1 | sed -e 's/^r//1'-e 's/ .*//g'
this should print the revision number of the branch point.
Good luck