two repositories sharing the same store?

Martin Geisler mg at daimi.au.dk
Mon Jul 28 14:21:10 CDT 2008


"David Baum" <dbaum at google.com> writes:

> What's the best way to create a second work area for a project I'm
> working on? I know I can clone the original repository, but the
> drawback to this is that I have to make sure I push/pull between my
> two repositories to keep them in sync. It also takes up a lot more
> space since I'm keeping 2 copies around of essentially the same
> data.

The data is hardlinked when you clone, so all the .hg directories
together will only take up the space for one copy. So Mercurial has
built-in support for your proposal :-)

Each working copy will take up the full amount of space, though.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/.


More information about the Mercurial mailing list