diff -r d85ef895d5f6 -r 149fd142f498 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Thu Mar 01 23:58:28 2018 -0500 +++ b/mercurial/debugcommands.py Fri Mar 02 00:37:33 2018 -0500 @@ -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():