Tortoise SVN Merge Multiple Branches into Trunk -
i know merging tortoise snv has been discussed (at length) cannot find answer situation. understand can merge dev branch trunk using merge wizard, proper workflow if want merge multiple branches trunk?
in situation, created 3 dev branches (one each developer) project trunk. initially, dev branches , trunk identical. developers working in separate areas of project, multiple people not working same files. so, example, have trunk, b1, b2, , b3 trunk = b1 = b2 = b3.
now, after development, want merge changes each dev branch trunk. getting confused. have read can merge each branch trunk, 1 @ time (committing changes each branch before merging next one) since share same ancestory , tortoise smart enough know should changed. so:
b1 -> merge trunk -> commit trunk (now trunk has b1 changes) b2 -> merge trunk -> commit trunk (now trunk has b1 , b2 changes) b3 -> merge trunk -> commit trunk (now trunk has b1, b2, , b3 changes)
i have read should merge dev branch changes other dev branches, merge trunk there not overwrite issues (which thought tortoise smart enough avoid). so:
b3 -> merge b2 -> commit b2 (now b2 has b3 changes) b2 -> merge b1 -> commit b1 (now b1 , b2 , b3 changes) b1 -> merge trunk -> commit trunk (now trunk has b1, b2, , b3 changes)
please advise if 1 method better other or if 1 flawed. concern if merge changes 1 branch, merge changes branch, undoing changes first merge operation or causing issues metadata.
i using tortoisesvn version 1.8.8, build 25755 , subversion 1.8.10.
thanks!
you should merge trunk branch before merging branch trunk. prior subversion 1.8 had specify --reintegrate
flag when merging trunk, subversion takes care of through new automatic reintegration merge capabilities. following workflow described in basic merging section of svn book:
- merge trunk b1
- commit changes on b1
- merge b1 trunk
- commit changes on trunk
- delete b1
repeat b2 , b3.
Comments
Post a Comment