RE: Nested Branches
From: Robert Cronk <rcronk_at_altiris.com>
Date: 2005-10-06 17:31:41 CEST
Thanks for the reply. I see now that I should have been a bit clearer in my description of the problem. I already have scripts written in python that detect changes in each branch, build each branch, and then merge each group of changesets automatically into the trunk. I have been doing this with svn for about a year and a half. Since these scripts always merge to the trunk, they have never had to figure out which branch to merge into - it's always the trunk. If I start nesting the branches, then the script needs to auto-detect not only which changesets need to be merged (that's already done) but also which branch to merge the changesets into (not done yet - this is what I'm after).
I do not know if automating all of this makes me smart or just plain lazy, but I know it can be done. I am just asking for experience from others in figuring out programmatically the easiest way to find out where something was copied from so I can merge changes into the HEAD of that branch. Does that make sense?
So in the following structure, I need the scripts to know that I am wanting to merge changes from 1.1 down to 1 and then from 1 down to the trunk. What is missing is the code that will find out where the current branch I am working on was copied from when that branch was created. For example, I copied the trunk to branch 1 then a bit later I copied branch 1 to branch 1.1. Knowing that, I can then merge changes each time I build from 1.1 to 1 and from 1 to the trunk.
+--------- branch 1.1
Robert
________________________________________
Robert,
________________________________________
+-------- branch 1 +------ branch 2
And so the branches that appear in the branches directory are siblings
And now, they want to change it to this:
+--------- branch 1.1
So that I can't just put branch 1 and branch 1.1 into the branches
I have thought of a few ways to do this. I have thought of setting up
I currently don't want to make it more complex than 2 levels deep, but
I want feedback from anyone out there that has had success in
Thanks,
---------------------------------------------------------------------
---------------------------------------------------------------------
|
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.