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

login
register
mail settings
Submitter phabricator
Date March 2, 2018, 7:51 p.m.
Message ID <20d6d60736b4d8d33cf0b4125001c701@localhost.localdomain>
Download mbox | patch
Permalink /patch/28711/
State Not Applicable
Headers show

Comments

phabricator - March 2, 2018, 7:51 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG149fd142f498: debugcommands: fix repr in debugignore print with pycompat.bytestr (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

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

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