comparison contrib/undumprevlog @ 31216:21fa3d3688f3

vfs: replace 'scmutil.opener' usage with 'scmutil.vfs' The 'vfs' class is the first class citizen for years. We remove all usages of the older API. This will let us remove the old API eventually.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 02 Mar 2017 03:52:36 +0100
parents 4f76c0c490b3
children 8d3e8c8c9049
comparison
equal deleted inserted replaced
31215:15c998528c36 31216:21fa3d3688f3
15 ) 15 )
16 16
17 for fp in (sys.stdin, sys.stdout, sys.stderr): 17 for fp in (sys.stdin, sys.stdout, sys.stderr):
18 util.setbinary(fp) 18 util.setbinary(fp)
19 19
20 opener = scmutil.opener('.', False) 20 opener = scmutil.vfs('.', False)
21 tr = transaction.transaction(sys.stderr.write, opener, {'store': opener}, 21 tr = transaction.transaction(sys.stderr.write, opener, {'store': opener},
22 "undump.journal") 22 "undump.journal")
23 while True: 23 while True:
24 l = sys.stdin.readline() 24 l = sys.stdin.readline()
25 if not l: 25 if not l: