D5037: py3: use stringutil.pprint() instead of '%r'
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Oct 13 01:59:31 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This makes test-pager-legacy.t pass on Python 3.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5037
AFFECTED FILES
contrib/python3-whitelist
mercurial/ui.py
CHANGE DETAILS
diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -1076,7 +1076,8 @@
if name not in encoding.environ:
pagerenv[name] = value
- self.debug('starting pager for command %r\n' % command)
+ self.debug('starting pager for command %s\n' %
+ stringutil.pprint(command))
self.flush()
wasformatted = self.formatted()
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -392,6 +392,7 @@
test-obsolete-divergent.t
test-obsolete-tag-cache.t
test-obsolete.t
+test-pager-legacy.t
test-pager.t
test-parents.t
test-parseindex2.py
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list