py3: use stringutil.pprint() to format a list to print
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 19 May 2018 00:23:36 +0530
changeset 38050 558e5504a4f8
parent 38049 88c2d0e639b1
child 38051 cab398cb9b49
py3: use stringutil.pprint() to format a list to print Differential Revision: https://phab.mercurial-scm.org/D3582
hgext/mq.py
--- a/hgext/mq.py	Sat May 19 00:21:59 2018 +0530
+++ b/hgext/mq.py	Sat May 19 00:23:36 2018 +0530
@@ -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()