[PATCH 17 of 20] share: directly use repo.vfs.join
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Sun Mar 12 10:45:51 EDT 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1489020750 28800
# Wed Mar 08 16:52:30 2017 -0800
# Node ID 99130f7619bff6da9ee1b569c0fa3bd172478ece
# Parent e54bacb4b99787c7f11150e91025b7c2e8f199d6
# EXP-Topic vfs.cleanup
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
# hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 99130f7619bf
share: directly use repo.vfs.join
The 'repo.join' method is about to be deprecated.
diff --git a/hgext/share.py b/hgext/share.py
--- a/hgext/share.py
+++ b/hgext/share.py
@@ -113,7 +113,7 @@ def unshare(ui, repo):
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')
More information about the Mercurial-devel
mailing list