##// END OF EJS Templates
py3: fix test-fix-metadata.t...
Pulkit Goyal -
r42622:6ed04139 default
parent child Browse files
Show More
@@ -233,6 +233,7 b' test-filecache.py'
233 test-filelog.py
233 test-filelog.py
234 test-fileset-generated.t
234 test-fileset-generated.t
235 test-fileset.t
235 test-fileset.t
236 test-fix-metadata.t
236 test-fix-topology.t
237 test-fix-topology.t
237 test-fix.t
238 test-fix.t
238 test-flagprocessor.t
239 test-flagprocessor.t
@@ -5,9 +5,9 b' below.'
5
5
6 $ cat >> $TESTTMP/postfixhook.py <<EOF
6 $ cat >> $TESTTMP/postfixhook.py <<EOF
7 > import collections
7 > import collections
8 > def file(ui, repo, rev=None, path='', metadata=None, **kwargs):
8 > def file(ui, repo, rev=None, path=b'', metadata=None, **kwargs):
9 > ui.status('fixed %s in revision %d using %s\n' %
9 > ui.status(b'fixed %s in revision %d using %s\n' %
10 > (path, rev, ', '.join(metadata.keys())))
10 > (path, rev, b', '.join(metadata.keys())))
11 > def summarize(ui, repo, replacements=None, wdirwritten=False,
11 > def summarize(ui, repo, replacements=None, wdirwritten=False,
12 > metadata=None, **kwargs):
12 > metadata=None, **kwargs):
13 > counts = collections.defaultdict(int)
13 > counts = collections.defaultdict(int)
@@ -19,13 +19,13 b' below.'
19 > counts[fixername] += 1
19 > counts[fixername] += 1
20 > if 'key' in metadata:
20 > if 'key' in metadata:
21 > keys += 1
21 > keys += 1
22 > ui.status('saw "key" %d times\n' % (keys,))
22 > ui.status(b'saw "key" %d times\n' % (keys,))
23 > for name, count in sorted(counts.items()):
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 > if replacements:
25 > if replacements:
26 > ui.status('fixed %d revisions\n' % (len(replacements),))
26 > ui.status(b'fixed %d revisions\n' % (len(replacements),))
27 > if wdirwritten:
27 > if wdirwritten:
28 > ui.status('fixed the working copy\n')
28 > ui.status(b'fixed the working copy\n')
29 > EOF
29 > EOF
30
30
31 Some mock output for fixer tools that demonstrate what could go wrong with
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