vfs: use 'vfs' module directly in 'contrib/undumprevlog'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 02 Mar 2017 13:32:49 +0100
changeset 31248 8d3e8c8c9049
parent 31247 04b4286278ec
child 31249 e067741d4607
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.
contrib/undumprevlog
--- a/contrib/undumprevlog	Thu Mar 02 13:32:27 2017 +0100
+++ b/contrib/undumprevlog	Thu Mar 02 13:32:49 2017 +0100
@@ -9,15 +9,15 @@
 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: