changeset 22263:ab0c42d22522

clone: for local clones, copy branchcache from the right location (issue4286) The unfiltered branchcache is in .hg/cache/branch2, not .hg/store/cache/branch2.
author Siddharth Agarwal <sid0@fb.com>
date Thu, 21 Aug 2014 15:58:32 -0700
parents 10880c8aad85
children 4bc1fd86e915
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):