hg clone help & links
Peter Arrenbrecht
peter.arrenbrecht at gmail.com
Thu Oct 25 10:18:35 CDT 2007
On 10/25/07, Matt Mackall <mpm at selenic.com> wrote:
> On Wed, Oct 24, 2007 at 10:49:12PM +0200, Guido Ostkamp wrote:
> (snipped)
> > I believe that 'git' offers the better alternatives here. With the 'git
> > clone --shared' command you can setup a clone of an repository that has a
> > single '.git/objects/info/alternates' file so that the new repository
> > starts without any objects of its own. It doesn't even need to be in the
> > same filesystem. And AFAIK if you move away your base repository you just
> > need to adapt the contents of this alternates file.
> >
> > It would be great to have a similar feature in Mercurial.
>
> There's not currently a command for it, but you can do:
>
> hg init shared
> cd shared
> ln -s /path/to/main/repo/.hg/store store
>
> and get a shared repo.
Hmm. I guess that was meant to be "cd shared/.hg". But doesn't this
mean that the cloned repo will update the original's data when
modified? If I read http://www.jukie.net/~bart/blog/git-vs-hg
correctly, then git clone --shared uses the original as a backup when
the cloned repo cannot find things in its own store. So changes to
cloned do _not_ affect the original. Or am I missing something here?
Wouldn't this be a case for
http://www.selenic.com/mercurial/wiki/index.cgi/OverlayRepository?
-peo
More information about the Mercurial
mailing list