aggregating subproject branches with bzr
Alexander Belchenko
bialix at ukr.net
Wed Feb 4 15:26:56 GMT 2009
Darren Dale пишет:
> I'm new to this list but I've been using bzr and launchpad frequently
> for a while now. Thank you for making such excellent tools!
>
> I have a project that I would like to break up into several
> independently developed subprojects. Each is useful on its own and I
> would like to make them available independently. I think that part is
> not difficult.
You can do this manually (and therefore break the history) or via
"split" command.
> Then I'd like to configure a master bzr branch that pulls
> in a branch from each of the subprojects, and tracks changes in each of
> the subproject branches. Is this possible with bzr?
If you want just have one integral branch and merge (not pull) the
changes there -- yes, it's possible.
First time you should merge your subprojects branches into integral
branch with command:
bzr merge -r0..-1 ../subproject-a
And then perhaps move subproject files to some subdir.
Next time you can merge you subproject branch simply by
bzr merge ../subproject-a
This is not ideal (although working) solution.
May be nested trees will help you there but they're not implemented yet,
but very likely will be soon.
As Marius suggested there is separate plugin (scmproj), also it's at
alpha stage now.
Nested trees and scmproj does not require to merge subproject branches
back to integral branch, but instead track subproject branches as is.
More information about the bazaar
mailing list