[PATCH 13 of 22] vfs: use 'vfs' module directly in 'hgext.mq'

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Mar 8 16:18:24 EST 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1488457883 -3600
#      Thu Mar 02 13:31:23 2017 +0100
# Node ID 1e7bd49c3b75b4a4ffaacc21f545394f7af52f73
# Parent  60cfd83b136a361ab560fd877a6f550aa19a6600
# 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 1e7bd49c3b75
vfs: use 'vfs' module directly in 'hgext.mq'

Now that the 'vfs' classes moved in their own module, lets use the new module
directly. We update code iteratively to help with possible bisect needs in the
future.

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -94,6 +94,7 @@ from mercurial import (
     smartset,
     subrepo,
     util,
+    vfs as vfsmod,
 )
 
 release = lockmod.release
@@ -434,7 +435,7 @@ class queue(object):
         except IOError:
             curpath = os.path.join(path, 'patches')
         self.path = patchdir or curpath
-        self.opener = scmutil.vfs(self.path)
+        self.opener = vfsmod.vfs(self.path)
         self.ui = ui
         self.baseui = baseui
         self.applieddirty = False


More information about the Mercurial-devel mailing list