[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

AW: Nested Branches

From: Markus Karg <markus.karg_at_quipsy.de>
Date: 2005-10-06 07:32:14 CEST

Robert,
 
no panic, actually you don't merge branches but patches (change sets). This means, If you take a bit care when merging, there is no different in the results of either merging branch 1.1 into branch 1 into trunk compared to merging branch 1 into trunk and branch 1.1 into trunk. You just need to take care of the the revision numbers when branching. Also it would be beneficial to do the branches in the correct time sequence (1, 1.1) because you might prevent some merge problems. then.
 
Following this rule I don't see that you need a special directory structure or organizational hint. Again, remember, SVN branches patches, not branches.
 
Mit freundlichem Gruss / With kind regards
Markus KARG, Staatl. gepr. Inf.
Entwicklung / R & D
QUIPSY QUALITY GmbH

________________________________

Von: Robert Cronk [mailto:rcronk@altiris.com]
Gesendet: Mi 05.10.2005 23:35
An: users@subversion.tigris.org
Betreff: Nested Branches

Recently, our company has decided to work with concurrent development in
a slightly different way than it has in the past. In the past, we have
had the following style of branching (1 level deep):

             +-------- branch 1 +------ branch 2
            / /
-----------+-----------------------+---------------------- trunk

And so the branches that appear in the branches directory are siblings
and not leveled or nested or anything. All changes made in branches are
merged directly to the trunk and are assumed to be branches of the
trunk.

And now, they want to change it to this:

                     +--------- branch 1.1
                    /
             +-----+----------- branch 1 +----branch 2
            / /
-----------+---------------------------------+----------- trunk

So that I can't just put branch 1 and branch 1.1 into the branches
directory because they are nested and related so that I would want to
merge changes from branch 1.1 into branch 1 and then from branch 1 into
the trunk. This way, the developers only have to put their changes in
one time and it will cascade merge down from the furthest out branch
toward the trunk.

I have thought of a few ways to do this. I have thought of setting up
some kind of directory structure in the branches that would indicate
which branch came from which. I have also thought of just trying to
figure out which branch came from which programmatically by looking at
logs, etc.

I currently don't want to make it more complex than 2 levels deep, but
if I'm going to set it up for 2 levels deep, it would seem to be just as
easy to make it generic and make it n-levels deep.

I want feedback from anyone out there that has had success in
implementing this type of structure successfully or have run into
problems with certain methods of doing it. Please let me know what you
all think. Of course, we'll be throwing this new structure into a live
build system within the next week or two. ;-)

Thanks,
Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 6 07:37:55 2005

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.