Show More
@@ -161,7 +161,7 b' def churn(ui, repo, *pats, **opts):' | |||||
161 | if not aliases and os.path.exists(repo.wjoin('.hgchurn')): |
|
161 | if not aliases and os.path.exists(repo.wjoin('.hgchurn')): | |
162 | aliases = repo.wjoin('.hgchurn') |
|
162 | aliases = repo.wjoin('.hgchurn') | |
163 | if aliases: |
|
163 | if aliases: | |
164 | for l in open(aliases, "r"): |
|
164 | for l in open(aliases, "rb"): | |
165 | try: |
|
165 | try: | |
166 | alias, actual = l.rsplit('=' in l and '=' or None, 1) |
|
166 | alias, actual = l.rsplit('=' in l and '=' or None, 1) | |
167 | amap[alias.strip()] = actual.strip() |
|
167 | amap[alias.strip()] = actual.strip() |
@@ -554,7 +554,7 b' def testchunkselector(testfn, ui, header' | |||||
554 | """ |
|
554 | """ | |
555 | chunkselector = curseschunkselector(headerlist, ui, operation) |
|
555 | chunkselector = curseschunkselector(headerlist, ui, operation) | |
556 | if testfn and os.path.exists(testfn): |
|
556 | if testfn and os.path.exists(testfn): | |
557 | testf = open(testfn) |
|
557 | testf = open(testfn, 'rb') | |
558 | testcommands = [x.rstrip('\n') for x in testf.readlines()] |
|
558 | testcommands = [x.rstrip('\n') for x in testf.readlines()] | |
559 | testf.close() |
|
559 | testf.close() | |
560 | while True: |
|
560 | while True: |
General Comments 0
You need to be logged in to leave comments.
Login now