Sharing repository across branches
Talden
talden at gmail.com
Mon Mar 31 21:07:53 BST 2008
On Tue, Apr 1, 2008 at 9:01 AM, Stefan Monnier <monnier at iro.umontreal.ca> wrote:
> > Well, ok, yes, just mv .bzr/repository will probably work fine.
>
> Oh, good.
>
> How 'bout putting a symlink in .bzr/repository? Should it work (would
> allow sharing repositories even between branches that don't have a good
> parent dir to use for that purpose)?
>
>
> >> > Would you like me to explain how to do this by hand?
> >> Yes, please.
> > Ok, so first you need to create the shared repository that you are
> > going to end up with everything it
>
> > bzr init-repo temp
>
> > bzr branch wherever temp/wherever
> > rm wherever
>
> But this is not "moving", it's "copy+delete".
> The performance is completely different.
>
>
> Stefan
Yes for branches with very expensive working-trees, the mv and convert
should be a lot faster than a branch operation (though some of the
operations are the same).
I expect the convert_to_shared is simply a traversal of the revisions
in the branch and moving those not in the shared repository - then the
branch repository is simply removed.
convert_to_standalone would be the reverse, copy the ancestry of the
branch from the shared-repo into the branch.
Finding someone motivated to provide the feature who is familiar
enough with the inner workings of Bazaar is a whole different matter.
--
Talden
More information about the bazaar
mailing list