Patchwork D2549: debugcommands: fix repr in debugignore print with pycompat.bytestr

login
register
mail settings
Submitter phabricator
Date March 2, 2018, 5:11 p.m.
Message ID <5fea11206b0e5e3f17ef6f160c2cd4c8@localhost.localdomain>
Download mbox | patch
Permalink /patch/28701/
State Not Applicable
Headers show

Comments

phabricator - March 2, 2018, 5:11 p.m.
durin42 updated this revision to Diff 6365.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2549?vs=6345&id=6365

REVISION DETAIL
  https://phab.mercurial-scm.org/D2549

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: durin42, #hg-reviewers, yuja
Cc: yuja, mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -1005,7 +1005,7 @@ 
     ignore = repo.dirstate._ignore
     if not files:
         # Show all the patterns
-        ui.write("%s\n" % repr(ignore))
+        ui.write("%s\n" % pycompat.byterepr(ignore))
     else:
         m = scmutil.match(repo[None], pats=files)
         for f in m.files():