# HG changeset patch # User Pierre-Yves David # Date 2017-03-09 00:53:24 # Node ID 4282feb794328be2d61b86e540f7f5a0f0c0a087 # Parent a3a2382b2e1bb9aaef8bf52a6723190cf0c3c693 hg-mod: directly use repo.vfs.join The 'repo.join' method is about to be deprecated. diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -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):