clone: for local clones, copy branchcache from the right location (issue4286)
authorSiddharth Agarwal <sid0@fb.com>
Thu, 21 Aug 2014 15:58:32 -0700
changeset 22263 ab0c42d22522
parent 22262 10880c8aad85
child 22264 4bc1fd86e915
clone: for local clones, copy branchcache from the right location (issue4286) The unfiltered branchcache is in .hg/cache/branch2, not .hg/store/cache/branch2.
mercurial/hg.py
--- 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):