Patchwork [17,of,20] share: directly use repo.vfs.join

login
register
mail settings
Submitter Pierre-Yves David
Date March 12, 2017, 2:45 p.m.
Message ID <99130f7619bff6da9ee1.1489329951@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/19162/
State Accepted
Headers show

Comments

Pierre-Yves David - March 12, 2017, 2:45 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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.

Patch

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')