##// END OF EJS Templates
dumprevlog: handle being passed a mode parameter...
Boris Feld -
r35982:a915465a default
parent child Browse files
Show More
@@ -14,8 +14,12 b' from mercurial import ('
14 for fp in (sys.stdin, sys.stdout, sys.stderr):
14 for fp in (sys.stdin, sys.stdout, sys.stderr):
15 util.setbinary(fp)
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 for f in sys.argv[1:]:
22 for f in sys.argv[1:]:
18 binopen = lambda fn: open(fn, 'rb')
19 r = revlog.revlog(binopen, f)
23 r = revlog.revlog(binopen, f)
20 print("file:", f)
24 print("file:", f)
21 for i in r:
25 for i in r:
General Comments 0
You need to be logged in to leave comments. Login now