clone: for local clones, copy branchcache from the right location (
issue4286)
The unfiltered branchcache is in .hg/cache/branch2, not
.hg/store/cache/branch2.
--- a/mercurial/hg.py Wed Aug 20 14:33:59 2014 -0400
+++ b/mercurial/hg.py Thu Aug 21 15:58:32 2014 -0700
@@ -367,7 +367,7 @@
# Recomputing branch cache might be slow on big repos,
# so just copy it
dstcachedir = os.path.join(destpath, 'cache')
- srcbranchcache = srcrepo.sjoin('cache/branch2')
+ srcbranchcache = srcrepo.join('cache/branch2')
dstbranchcache = os.path.join(dstcachedir, 'branch2')
if os.path.exists(srcbranchcache):
if not os.path.exists(dstcachedir):