Mercurial > hg
comparison contrib/undumprevlog @ 19022:cba222f01056
tests: run check-code on Python files without .py extension
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 17 Apr 2013 03:39:36 +0200 |
parents | 659f34b833b9 |
children | 5bd1f6572db0 |
comparison
equal
deleted
inserted
replaced
19021:26b41a902195 | 19022:cba222f01056 |
---|---|
9 for fp in (sys.stdin, sys.stdout, sys.stderr): | 9 for fp in (sys.stdin, sys.stdout, sys.stderr): |
10 util.setbinary(fp) | 10 util.setbinary(fp) |
11 | 11 |
12 opener = scmutil.opener('.', False) | 12 opener = scmutil.opener('.', False) |
13 tr = transaction.transaction(sys.stderr.write, opener, "undump.journal") | 13 tr = transaction.transaction(sys.stderr.write, opener, "undump.journal") |
14 while 1: | 14 while True: |
15 l = sys.stdin.readline() | 15 l = sys.stdin.readline() |
16 if not l: | 16 if not l: |
17 break | 17 break |
18 if l.startswith("file:"): | 18 if l.startswith("file:"): |
19 f = l[6:-1] | 19 f = l[6:-1] |