Helpful blog post on merging SVN branches
-
check which branch you're on:
svn info
-
Switch to your branch (if needed):
svn switch https://yoursvndomain.com/svn/reference/branches/mybranch/
-
Update your branch:
svn up
-
get revision number when the branch was created:
svn log --stop-on-copy
Branch was created:
Revision AAAA
-
switch to trunk
svn switch https://yoursvndomain.com/svn/reference/trunk/
-
Update trunk to the latest
svn up
-
take note of that revision -
Revision BBBB
-
Merge
mybranch
totrunk
svn merge -rAAAA:BBBB https://yoursvndomain.com/svn/reference/branches/mybranch/
-
Show updated status
svn st -u
-
Grep for conflicting files and accept the working version (this is helpful if they're a lot of files that you know are good but didn't have when you branched. As always run a test grep first:
svn status | grep C
svn status | grep C | colrm 1 8 | xargs echo svn resolve --accept working
-
Check in Merge
svn ci -m 'Merging mybranch into trunk'