Re: Merging Branches
From: Bob Jacoby <RJacoby_at_tceq.state.tx.us>
Date: 2004-09-03 22:09:05 CEST
This is a good methodology when you can bring in all changes from X+1 to HEAD. I'll have to remember that and put it in my agency's documentation.
Not sure who you were replying to, but Russ's original message that started this thread stated he cherry picked some important fixes from the trunk and merged them in to his branch. As Ben commented earlier, in this situation remembering which revisions were merged and which weren't is much more complicated.
While I think it would be beneficial to implement a partial trunk to branch merge strategy for the simple case you outlined(and ignore the more complicated cherry picking and other situations), it's probably not that simple either. There's other use cases that would have to be considered that make it more complicated such as failing if you merge in a revision outside the block and "re-allowing" if you revert those revisions back, etc.
Of course, I'm pretty much talking out my ... since I've been playing with subversion for all of 2 days and have now given this 2 minutes of thought. :)
Bob
>>> "Patrick Dean Rusk" <PRusk@foliage.com> 09/03/04 02:25PM >>>
I personally think the "right way" described in the Subversion book does not
My experience has been that branches need to periodically bring over changes
1) Cut your branch, noting the revision of the branch point, say "X".
2) After some time, merge revisions X+1 to HEAD into the branch. Note the
3) Keep doing step 2 until you're done with your branch changes.
4) Do step 2 one more time, so that you branch is completely up-to-date with
5) Now you merge the branch into trunk without any reference to revisions or
6) Do a check to make sure that no one snuck in another trunk revision
I used this strategy in a 2500 file project where my branch affected 500+
Patrick Rusk
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.