branching via hard links

Ramon Diaz-Uriarte rdiaz02 at gmail.com
Sun May 14 23:14:49 BST 2006


On 5/14/06, Jan Hudec <bulb at ucw.cz> wrote:
> On Sun, May 14, 2006 at 12:28:28 +0200, Ramon Diaz-Uriarte wrote:
> > Dear All,
> >
> > Just out of curiosity: Would it make sense (at least undir Linux/Unix)
> > systems to use, when doing a "bzr branch" some kind of  "cp -r -l"?
> > The main advantage is speed (and storage). Sure, there would be a need
> > to unlink the modified files, so maybe this is more trouble than is
> > worth it. The nice thing about hard links  is that it makes
> > branching/cloning a lot more inexpensve. (I think Mercurial uses hard
> > links when possible, and this I think accounts in part for the 5x to
> > 8x faster "cloning" compared to bazaar).
>
> Now there are repositories, branching inside repository is even faster, since
> it copies just a few bytes.
>

Thanks for the answer. However, if I understood correctly, that is
only when we do not use the "trees" option. But I often want the trees
option when I clone local repos (I want to edit in those branches),
and I think the gain then goes down. (I actually just tested on a
couple of local repos).

R.



> --
>                                                  Jan 'Bulb' Hudec <bulb at ucw.cz>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
>
> iD8DBQFEZz8+Rel1vVwhjGURAmeZAKDguXpmt3r0s9nDIdTacyCCgKg/GACfXWRW
> 5IzPgOnJcfpJwnMqNv1mOSI=
> =+IHi
> -----END PGP SIGNATURE-----
>
>
>


-- 
Ramon Diaz-Uriarte
Bioinformatics Unit
Spanish National Cancer Centre (CNIO)
http://ligarto.org/rdiaz




More information about the bazaar mailing list