D3582: py3: use stringutil.pprint() to format a list to print

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Fri May 18 22:37:42 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG558e5504a4f8: py3: use stringutil.pprint() to format a list to print (authored by pulkit, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D3582?vs=8743&id=8754#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3582?vs=8743&id=8754

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