##// END OF EJS Templates
clone: for local clones, copy branchcache from the right location (issue4286)...
Siddharth Agarwal -
r22263:ab0c42d2 default
parent child Browse files
Show More
@@ -367,7 +367,7 b' def clone(ui, peeropts, source, dest=Non'
367 # Recomputing branch cache might be slow on big repos,
367 # Recomputing branch cache might be slow on big repos,
368 # so just copy it
368 # so just copy it
369 dstcachedir = os.path.join(destpath, 'cache')
369 dstcachedir = os.path.join(destpath, 'cache')
370 srcbranchcache = srcrepo.sjoin('cache/branch2')
370 srcbranchcache = srcrepo.join('cache/branch2')
371 dstbranchcache = os.path.join(dstcachedir, 'branch2')
371 dstbranchcache = os.path.join(dstcachedir, 'branch2')
372 if os.path.exists(srcbranchcache):
372 if os.path.exists(srcbranchcache):
373 if not os.path.exists(dstcachedir):
373 if not os.path.exists(dstcachedir):
General Comments 0
You need to be logged in to leave comments. Login now