two repositories sharing the same store?

Alpár Jüttner alpar at cs.elte.hu
Mon Jul 28 14:47:46 CDT 2008


On Mon, 2008-07-28 at 21:21 +0200, Martin Geisler wrote:
> "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 :-)

Of course it has not.
If you have a clone of a repo, the version histories won't synchronize
automatically when you add a new changeset into one of the clones.

Regards,
Alpar

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



More information about the Mercurial mailing list