D3582: py3: use stringutil.pprint() to format a list to print
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri May 18 19:07:49 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3582
AFFECTED FILES
hgext/mq.py
CHANGE DETAILS
diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -492,7 +492,8 @@
n, name = entry
yield statusentry(bin(n), name)
elif l.strip():
- self.ui.warn(_('malformated mq status line: %s\n') % entry)
+ self.ui.warn(_('malformated mq status line: %s\n') %
+ stringutil.pprint(entry))
# else we ignore empty lines
try:
lines = self.opener.read(self.statuspath).splitlines()
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list