##// END OF EJS Templates
hg-mod: directly use repo.vfs.join...
Pierre-Yves David -
r31322:4282feb7 default
parent child Browse files
Show More
@@ -559,7 +559,7 b' def clone(ui, peeropts, source, dest=Non'
559
559
560 destlock = copystore(ui, srcrepo, destpath)
560 destlock = copystore(ui, srcrepo, destpath)
561 # copy bookmarks over
561 # copy bookmarks over
562 srcbookmarks = srcrepo.join('bookmarks')
562 srcbookmarks = srcrepo.vfs.join('bookmarks')
563 dstbookmarks = os.path.join(destpath, 'bookmarks')
563 dstbookmarks = os.path.join(destpath, 'bookmarks')
564 if os.path.exists(srcbookmarks):
564 if os.path.exists(srcbookmarks):
565 util.copyfile(srcbookmarks, dstbookmarks)
565 util.copyfile(srcbookmarks, dstbookmarks)
@@ -567,7 +567,7 b' def clone(ui, peeropts, source, dest=Non'
567 # Recomputing branch cache might be slow on big repos,
567 # Recomputing branch cache might be slow on big repos,
568 # so just copy it
568 # so just copy it
569 def copybranchcache(fname):
569 def copybranchcache(fname):
570 srcbranchcache = srcrepo.join('cache/%s' % fname)
570 srcbranchcache = srcrepo.vfs.join('cache/%s' % fname)
571 dstbranchcache = os.path.join(dstcachedir, fname)
571 dstbranchcache = os.path.join(dstcachedir, fname)
572 if os.path.exists(srcbranchcache):
572 if os.path.exists(srcbranchcache):
573 if not os.path.exists(dstcachedir):
573 if not os.path.exists(dstcachedir):
General Comments 0
You need to be logged in to leave comments. Login now