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.
--- 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: