D6480: py3: fix test-fix-metadata.t
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Jun 8 02:11:27 UTC 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6ed04139ed37: py3: fix test-fix-metadata.t (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6480?vs=15348&id=15378
REVISION DETAIL
https://phab.mercurial-scm.org/D6480
AFFECTED FILES
contrib/python3-whitelist
tests/test-fix-metadata.t
CHANGE DETAILS
diff --git a/tests/test-fix-metadata.t b/tests/test-fix-metadata.t
--- a/tests/test-fix-metadata.t
+++ b/tests/test-fix-metadata.t
@@ -5,9 +5,9 @@
$ cat >> $TESTTMP/postfixhook.py <<EOF
> import collections
- > def file(ui, repo, rev=None, path='', metadata=None, **kwargs):
- > ui.status('fixed %s in revision %d using %s\n' %
- > (path, rev, ', '.join(metadata.keys())))
+ > def file(ui, repo, rev=None, path=b'', metadata=None, **kwargs):
+ > ui.status(b'fixed %s in revision %d using %s\n' %
+ > (path, rev, b', '.join(metadata.keys())))
> def summarize(ui, repo, replacements=None, wdirwritten=False,
> metadata=None, **kwargs):
> counts = collections.defaultdict(int)
@@ -19,13 +19,13 @@
> counts[fixername] += 1
> if 'key' in metadata:
> keys += 1
- > ui.status('saw "key" %d times\n' % (keys,))
+ > ui.status(b'saw "key" %d times\n' % (keys,))
> for name, count in sorted(counts.items()):
- > ui.status('fixed %d files with %s\n' % (count, name))
+ > ui.status(b'fixed %d files with %s\n' % (count, name))
> if replacements:
- > ui.status('fixed %d revisions\n' % (len(replacements),))
+ > ui.status(b'fixed %d revisions\n' % (len(replacements),))
> if wdirwritten:
- > ui.status('fixed the working copy\n')
+ > ui.status(b'fixed the working copy\n')
> EOF
Some mock output for fixer tools that demonstrate what could go wrong with
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -233,6 +233,7 @@
test-filelog.py
test-fileset-generated.t
test-fileset.t
+test-fix-metadata.t
test-fix-topology.t
test-fix.t
test-flagprocessor.t
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list