# HG changeset patch # User Siddharth Agarwal # Date 2014-08-21 22:58:32 # Node ID ab0c42d22522019559da49c3ab8d4387247f7d98 # Parent 10880c8aad85554a0a21e3a250fa961589b18236 clone: for local clones, copy branchcache from the right location (issue4286) The unfiltered branchcache is in .hg/cache/branch2, not .hg/store/cache/branch2. diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -367,7 +367,7 @@ def clone(ui, peeropts, source, dest=Non # 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):