Mercurial vs. Bazaar speedtest clone and log - update: hg 1.1 vs. bzr 1.10

Brendan Cully brendan at kublai.com
Thu Dec 18 19:25:50 UTC 2008


On Thursday, 18 December 2008 at 13:17, Matt Mackall wrote:
> On Mon, 2008-12-15 at 12:13 +0100, Arne Babenhauserheide wrote:
> > As suggested in the Mercurial Mailinglist, I reran the local cloning
> > test for 
> > Bazaar using a shared repository and forced hardlinks. With this Bazaar needed 
> > just 2.6s for a local clone, without hardlinks about 12s, so by using shared 
> > repositories the local cloning becomes quite fast in Bazaar (as long as you 
> > restrict yourself to the shared repository). 
> 
> FYI, Mercurial has an analogous but unadvertised sharing mode:
> 
> hg init shared
> rmdir shared/.hg/store
> ln -s orig/.hg/store shared/.hg/store
> 
> We haven't added this mode to the clone command because operations that
> modify history (mq, strip, rebase) can cause parents of other checkouts
> to cease to exist.

By the way, I've put together a userfriendly wrapper for that idea
which should also work on filesystems without symlinks:

http://www.selenic.com/mercurial/wiki/index.cgi/SharedRepoExtension

It adds a --shared flag to the clone command.



More information about the Mercurial mailing list