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

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


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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.

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:


More information about the Mercurial-devel mailing list