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

2018-05-18 Thread pulkit (Pulkit Goyal)
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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


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

2018-05-18 Thread pulkit (Pulkit Goyal)
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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel