Secret phase prevents fast local cloning
Matt Mackall
mpm at selenic.com
Wed Dec 3 21:13:15 UTC 2014
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.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list