Patchwork [18,of,22] vfs: use 'vfs' module directly in 'contrib/undumprevlog'

login
register
mail settings
Submitter Pierre-Yves David
Date March 8, 2017, 9:18 p.m.
Message ID <f25cc9e5d5509dca6cc5.1489007909@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/19016/
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 1488457969 -3600
#      Thu Mar 02 13:32:49 2017 +0100
# Node ID f25cc9e5d5509dca6cc5b232690b26d3f1a60968
# Parent  411f7ad0293ad358de1e0170b6443069fbf37ffc
# 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 f25cc9e5d550
vfs: use 'vfs' module directly in 'contrib/undumprevlog'

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/contrib/undumprevlog b/contrib/undumprevlog
--- a/contrib/undumprevlog
+++ b/contrib/undumprevlog
@@ -9,15 +9,15 @@  import sys
 from mercurial import (
     node,
     revlog,
-    scmutil,
     transaction,
     util,
+    vfs as vfsmod,
 )
 
 for fp in (sys.stdin, sys.stdout, sys.stderr):
     util.setbinary(fp)
 
-opener = scmutil.vfs('.', False)
+opener = vfsmod.vfs('.', False)
 tr = transaction.transaction(sys.stderr.write, opener, {'store': opener},
                              "undump.journal")
 while True: