share: directly use repo.vfs.join
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 08 Mar 2017 16:52:30 -0800
changeset 31334 553680d1b654
parent 31333 f897a088377c
child 31335 3acc7af5859c
share: directly use repo.vfs.join The 'repo.join' method is about to be deprecated.
hgext/share.py
--- a/hgext/share.py	Wed Mar 08 16:52:16 2017 -0800
+++ b/hgext/share.py	Wed Mar 08 16:52:30 2017 -0800
@@ -113,7 +113,7 @@
 
         destlock = hg.copystore(ui, repo, repo.path)
 
-        sharefile = repo.join('sharedpath')
+        sharefile = repo.vfs.join('sharedpath')
         util.rename(sharefile, sharefile + '.old')
 
         repo.requirements.discard('shared')