diff -r 10880c8aad85 -r ab0c42d22522 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):