Secret phase prevents fast local cloning
Kim Randell
Kim.Randell at vicon.com
Wed Dec 3 14:29:21 UTC 2014
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 ?
--
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