Re: how to merge a feature branch back to trunk?
From: Benjamin Smith-Mannschott <bsmith.occs_at_gmail.com>
Date: Sun, 7 Sep 2008 11:38:10 +0200
On Sep 4, 2008, at 16:45, Martin Bischoff wrote:
> I have created a feature branch which I will have to merge back to
> Here's the situation:
> After reading the documentation, I think I have two options to merge
> Will the result be different depending on which approach I'll use?
(You appear to be using svn 1.5 (since it introduced reintegrate). I
I don't think it much matters, as long as you understand what you're
(Think of the branch as a set of changes. The question is changes
(1)
You've got changes on the trunk that are not on the branch. By merging
svn merge svn://repo/trunk svn://repo/branch working-copy-of-trunk-head
This means: compute the changes necessary to make svn://repo/trunk
The safety of this operation depends critically on the fact that
This is the scenario that the merge --reintegrate option in 1.5 is
(2)
You've not synced your branch with trunk. The work represented by the
To figure out the origin of your branch use
svn log --stop-on-copy svn://repo/branch
The last entry listed should be the one where the branch was created
svn merge -r100:HEAD svn://repo/branch working-copy-of-trunk
This means: gather all the changes that were made to the branch since
In either case, you'll want to inspect the results of the merge in
I would also recommend deleting the branch when you are done. You can
// Ben
---------------------------------------------------------------------
|
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.