Comments
Patch
@@ -559,7 +559,7 @@ def clone(ui, peeropts, source, dest=Non
destlock = copystore(ui, srcrepo, destpath)
# copy bookmarks over
- srcbookmarks = srcrepo.join('bookmarks')
+ srcbookmarks = srcrepo.vfs.join('bookmarks')
dstbookmarks = os.path.join(destpath, 'bookmarks')
if os.path.exists(srcbookmarks):
util.copyfile(srcbookmarks, dstbookmarks)
@@ -567,7 +567,7 @@ def clone(ui, peeropts, source, dest=Non
# Recomputing branch cache might be slow on big repos,
# so just copy it
def copybranchcache(fname):
- srcbranchcache = srcrepo.join('cache/%s' % fname)
+ srcbranchcache = srcrepo.vfs.join('cache/%s' % fname)
dstbranchcache = os.path.join(dstcachedir, fname)
if os.path.exists(srcbranchcache):
if not os.path.exists(dstcachedir):
@@ -716,7 +716,7 @@ def update(repo, node, quietempty=False,
def clean(repo, node, show_stats=True, quietempty=False):
"""forcibly switch the working directory to node, clobbering changes"""
stats = updaterepo(repo, node, True)
- util.unlinkpath(repo.join('graftstate'), ignoremissing=True)
+ util.unlinkpath(repo.vfs.join('graftstate'), ignoremissing=True)
if show_stats:
_showstats(repo, stats, quietempty)
return stats[3] > 0