Show More
@@ -233,6 +233,7 b' test-filecache.py' | |||
|
233 | 233 | test-filelog.py |
|
234 | 234 | test-fileset-generated.t |
|
235 | 235 | test-fileset.t |
|
236 | test-fix-metadata.t | |
|
236 | 237 | test-fix-topology.t |
|
237 | 238 | test-fix.t |
|
238 | 239 | test-flagprocessor.t |
@@ -5,9 +5,9 b' below.' | |||
|
5 | 5 | |
|
6 | 6 | $ cat >> $TESTTMP/postfixhook.py <<EOF |
|
7 | 7 | > import collections |
|
8 |
> def file(ui, repo, rev=None, path='' |
|
|
9 | > ui.status('fixed %s in revision %d using %s\n' % | |
|
10 | > (path, rev, ', '.join(metadata.keys()))) | |
|
8 | > def file(ui, repo, rev=None, path=b'', metadata=None, **kwargs): | |
|
9 | > ui.status(b'fixed %s in revision %d using %s\n' % | |
|
10 | > (path, rev, b', '.join(metadata.keys()))) | |
|
11 | 11 |
> def summarize(ui, repo, replacements=None |
|
12 | 12 |
> metadata=None |
|
13 | 13 | > counts = collections.defaultdict(int) |
@@ -19,13 +19,13 b' below.' | |||
|
19 | 19 | > counts[fixername] += 1 |
|
20 | 20 | > if 'key' in metadata: |
|
21 | 21 | > keys += 1 |
|
22 | > ui.status('saw "key" %d times\n' % (keys,)) | |
|
22 | > ui.status(b'saw "key" %d times\n' % (keys,)) | |
|
23 | 23 | > for name, count in sorted(counts.items()): |
|
24 | > ui.status('fixed %d files with %s\n' % (count, name)) | |
|
24 | > ui.status(b'fixed %d files with %s\n' % (count, name)) | |
|
25 | 25 | > if replacements: |
|
26 | > ui.status('fixed %d revisions\n' % (len(replacements),)) | |
|
26 | > ui.status(b'fixed %d revisions\n' % (len(replacements),)) | |
|
27 | 27 | > if wdirwritten: |
|
28 | > ui.status('fixed the working copy\n') | |
|
28 | > ui.status(b'fixed the working copy\n') | |
|
29 | 29 | > EOF |
|
30 | 30 | |
|
31 | 31 | Some mock output for fixer tools that demonstrate what could go wrong with |
General Comments 0
You need to be logged in to leave comments.
Login now