I've done option 1 myself and can report no pitfalls. If I understand correctly, you want to blow away the trunk and replace it outright with a branch, so... just do that!
Jonathan Feinberg
2009-12-03 14:35:44
I've done option 1 myself and can report no pitfalls. If I understand correctly, you want to blow away the trunk and replace it outright with a branch, so... just do that!
I would do it like this:
svn co http://svnhost/svn/mtest/trunk cd trunk svn merge http://svnhost/svn/mtest/trunk http://svnhost/svn/mtest/branches/b1
This is saying, "take the changes that get me from trunk to branch, and apply them to the trunk."
In other words, "tell me the changes that would transform trunk into branch...and do them!"
You could rollback all the changes in trunk since the branch was made, then simply re-integrate the branch into trunk in the normal way.
This is basically a reverse merge of all the changes on trunk since the branch, and gives you one revision which removes them all. Then the branch changes come in on top of that.