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

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Mar 2 12:11:01 EST 2018


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

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



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


More information about the Mercurial-devel mailing list