Secret phase prevents fast local cloning

Kim Randell Kim.Randell at vicon.com
Thu Dec 4 15:00:09 UTC 2014


> -----Original Message-----
> From: Matt Mackall [mailto:mpm at selenic.com]
> Sent: 03 December 2014 21:13
> To: Kim Randell
> Cc: mercurial at selenic.com
> Subject: Re: Secret phase prevents fast local cloning
> 
> On Wed, 2014-12-03 at 14:29 +0000, Kim Randell wrote:
> > Hello,
> >
> > I've been attempting to create hardlinked clones of my local repository,
> and after some experimentation determined that changesets with secret
> phase prevent hardlinks or file copies, falling back on the slow pull clone.
> Eventually I found this in the source:
> >
> >         if (srcrepo and srcrepo.cancopy() and islocal(dest)
> >             and not phases.hassecret(srcrepo)):
> >             copy = not pull and not rev
> >
> > Which ultimately originated with this change:
> >
> http://selenic.com/repo/hg/annotate/2072e4031994/mercurial/localrepo.py
> #l631
> >
> > This doesn't appear to be documented anywhere - perhaps it should be
> added to http://selenic.com/hg/help/clone,
> http://mercurial.selenic.com/wiki/HardlinkedClones, or
> http://mercurial.selenic.com/wiki/Phases ?
> 
> You are correct. It's a wiki: login and edit away.

Done:
http://mercurial.selenic.com/wiki/Phases#Impact_on_cloning
Hope that's okay.

--
Kim



________________________________________________________________________
This e-mail, and any attachment, is confidential. If you have received it in error, do not use or disclose the information in any way, notify me immediately, and please delete it from your system.
________________________________________________________________________


More information about the Mercurial mailing list