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

login
register
mail settings
Submitter Pierre-Yves David
Date March 8, 2017, 9:18 p.m.
Message ID <1e7bd49c3b75b4a4ffaa.1489007904@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/19011/
State Accepted
Headers show

Comments

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

Patch

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