# HG changeset patch # User Pierre-Yves David # Date 2017-03-02 12:30:47 # Node ID 1b08aca7870af252232694e30ccb8f8bbb7f7ded # Parent 8a0687a2be752740c62d73a4f12edac6e99ffcef vfs: use 'vfs' module directly in 'mercurial.cmdutil' 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/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -45,6 +45,7 @@ from . import ( templatekw, templater, util, + vfs as vfsmod, ) stringio = util.stringio @@ -583,7 +584,7 @@ def openrevlog(repo, cmd, file_, opts): raise error.CommandError(cmd, _('invalid arguments')) if not os.path.isfile(file_): raise error.Abort(_("revlog '%s' not found") % file_) - r = revlog.revlog(scmutil.vfs(pycompat.getcwd(), audit=False), + r = revlog.revlog(vfsmod.vfs(pycompat.getcwd(), audit=False), file_[:-2] + ".i") return r