Mercurial > hg
changeset 40226:0d403e9f049a
py3: use stringutil.pprint() instead of '%r'
This makes test-pager-legacy.t pass on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D5037
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Sat, 13 Oct 2018 04:54:35 +0300 |
parents | 474809790256 |
children | f4893b59230f |
files | contrib/python3-whitelist mercurial/ui.py |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/python3-whitelist Sat Oct 13 04:51:09 2018 +0300 +++ b/contrib/python3-whitelist Sat Oct 13 04:54:35 2018 +0300 @@ -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
--- a/mercurial/ui.py Sat Oct 13 04:51:09 2018 +0300 +++ b/mercurial/ui.py Sat Oct 13 04:54:35 2018 +0300 @@ -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()