Appying a fix to both stable and development branches
I'm migrating a project over from CVS, and am still learning to use Bazaar. The project has multiple active branches, and it is common for us to want to apply the same set of changes to more than one branch. I doubt that we're unique in that requirement, but I can't see anything in the Bazaar documentation that describes how to achieve this easily.
With CVS we did it by committing the changes on one branch and using 'cvs update -j <oldrev> -j <newrev> <file>' to apply those same changes to each file on the other branch. Of course it's not really that easy since you have to extract the old and new revision numbers individually for each file, but I wrote a Perl script which automates most of that. We gave up duplicating the log messages for the second commit, but I really don't like that since we now have lots of commits on our development CVS branch which just say something like "sync to stable branch."
I'm hoping this is something that Bazaar can help us do much better in the future, but I can't quite see how. I'd like to be able to create a task branch from from my stable series branch, develop and commit the fixes to that task branch, merge the task branch back into the stable series branch, then also merge the same changes into the development series branch (after making modifications to account for the differences between our stable and development series).
I'm told that darcs makes this kind of thing very easy to do, can someone explain the best way to achieve it using Bazaar?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- John A Meinel
- Solved:
- Last query:
- Last reply: