Show More
@@ -14,8 +14,12 b' from mercurial import (' | |||
|
14 | 14 | for fp in (sys.stdin, sys.stdout, sys.stderr): |
|
15 | 15 | util.setbinary(fp) |
|
16 | 16 | |
|
17 | def binopen(path, mode='rb'): | |
|
18 | if 'b' not in mode: | |
|
19 | mode = mode + 'b' | |
|
20 | return open(path, mode) | |
|
21 | ||
|
17 | 22 | for f in sys.argv[1:]: |
|
18 | binopen = lambda fn: open(fn, 'rb') | |
|
19 | 23 | r = revlog.revlog(binopen, f) |
|
20 | 24 | print("file:", f) |
|
21 | 25 | for i in r: |
General Comments 0
You need to be logged in to leave comments.
Login now