Mercurial > hg
comparison contrib/undumprevlog @ 37120:a8a902d7176e
procutil: bulk-replace function calls to point to new module
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 24 Mar 2018 15:10:51 +0900 |
parents | 5d9890d8ca77 |
children | a063b84ce064 |
comparison
equal
deleted
inserted
replaced
37119:d4a2e0d5d042 | 37120:a8a902d7176e |
---|---|
8 import sys | 8 import sys |
9 from mercurial import ( | 9 from mercurial import ( |
10 node, | 10 node, |
11 revlog, | 11 revlog, |
12 transaction, | 12 transaction, |
13 util, | |
14 vfs as vfsmod, | 13 vfs as vfsmod, |
14 ) | |
15 from mercurial.utils import ( | |
16 procutil, | |
15 ) | 17 ) |
16 | 18 |
17 for fp in (sys.stdin, sys.stdout, sys.stderr): | 19 for fp in (sys.stdin, sys.stdout, sys.stderr): |
18 util.setbinary(fp) | 20 procutil.setbinary(fp) |
19 | 21 |
20 opener = vfsmod.vfs('.', False) | 22 opener = vfsmod.vfs('.', False) |
21 tr = transaction.transaction(sys.stderr.write, opener, {'store': opener}, | 23 tr = transaction.transaction(sys.stderr.write, opener, {'store': opener}, |
22 "undump.journal") | 24 "undump.journal") |
23 while True: | 25 while True: |