A not so idle thought

Stefan Monnier monnier at iro.umontreal.ca
Wed Oct 15 20:20:52 BST 2008


> In fact, Mercurial works hard to make the "branch=clone=copy" model as
> effective as possible - it uses hard links to avoid file copying as
> much as possible when cloning, so reducing the cost of cloning
> significantly (this is even on Windows, when using NTFS). The result
> is (as I understand it) many of the performance benefits of Bazaar's
> shared repositories, without the restriction that branches need to
> live in a single physical repository directory (something which
> doesn't suit my working patterns).

You can easily go around this restriction: move the branch to wherever
you want it, and then add a .bzr/repository symlink to the shared
repository's .bzr/repository.
Just like Mercurial's hardlinks, this is a hack, so it can be brittle in
some cases.


        Stefan




More information about the bazaar mailing list