two repositories sharing the same store?

David Baum dbaum at google.com
Mon Jul 28 14:06:35 CDT 2008


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.

I tried replacing .hg/store in the second repo with a soft link to the
.hg/store for the original, and it seems to work for the few tests I tried,
but I'm concerned about the robustness of this.  I expect hg would get very
confused if two repos were changing the same store at the same time.  But
assuming that I only run hg commands in one repo at a time, is this a safe
solution, or is there cached information in .hg outside of store that
assumes store hasn't changed?

Is there some other mechanism for doing this?

Thanks,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20080728/b08886b1/attachment.htm 


More information about the Mercurial mailing list