On 8 Nov 2005 Gavin Lambert wrote:
> Well, it's better to first commit your changes from the dev WC to the
> dev branch (making r31 in dev). *After* that you merge r28:31 from live
> into dev and resolve conflicts, then commit again, making r32. Then if
> you're happy terminating the branch, you can switch to live, merge
> r28:32 from dev to live, and commit r33.
>
> That way it's more obvious what changes the merge is making, and you can
> back it out if something went fubar.
Fair enough. Thanks for the tip.
> > But what about this:
> >
> > At r27 the two branches are synchronized (last merge)
> > 'Live' branch has some changes committed in r28 and r30
> > 'Dev' branch has some changes committed in r29 and r31
> > 'Dev' branch has also been updated (WC only)
> > Merge live changes from r28:30 to dev, should work as above
> > Commit dev as r32
> >
> > Now, how do I get the dev changes back into the live branch? What
> > revisions do I merge? The interlacing makes it very confusing.
>
> 1. Commit dev (r32)
> 2. Merge r28:32 from live into your dev WC (HEAD is 32)
> 3. Resolve any conflicts, make sure everything still works ok
> 4. Commit dev (r33)
> 5. Switch to your live branch
> 6. Merge r28:33 from dev into your live WC (HEAD is 33)
> 7. Make sure things are still ok
> 8. Commit live (r34)
>
> (In step 2, since r29 and r31 only contained changes to the dev branch,
> there won't be any modifications in the live branch for those revisions.
> So merging them is a no-op and quite safe.)
This makes sense but what concerns me is your step 6. r28:33 on the
dev branch contains all of the r28:32 changes from the live branch so
they are being applied back to live. This seems like a recipe for
problems but I am not sure I can mentally construct a good enough set
of test cases to see if that hunch is right or wrong.
--
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 7 23:23:45 2005