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

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 2:37 a.m.
Message ID <a0ec331acbb62e7a624525da2ec87feb@localhost.localdomain>
Download mbox | patch
Permalink /patch/31671/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 2:37 a.m.
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




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

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()