comparison mercurial/debugcommands.py @ 36578:149fd142f498

debugcommands: fix repr in debugignore print with pycompat.bytestr Differential Revision: https://phab.mercurial-scm.org/D2549
author Augie Fackler <augie@google.com>
date Fri, 02 Mar 2018 00:37:33 -0500
parents 5faeabb07cf5
children ff6b8484400b
comparison
equal deleted inserted replaced
36577:d85ef895d5f6 36578:149fd142f498
1003 if so, show the ignore rule (file and line number) that matched it. 1003 if so, show the ignore rule (file and line number) that matched it.
1004 """ 1004 """
1005 ignore = repo.dirstate._ignore 1005 ignore = repo.dirstate._ignore
1006 if not files: 1006 if not files:
1007 # Show all the patterns 1007 # Show all the patterns
1008 ui.write("%s\n" % repr(ignore)) 1008 ui.write("%s\n" % pycompat.byterepr(ignore))
1009 else: 1009 else:
1010 m = scmutil.match(repo[None], pats=files) 1010 m = scmutil.match(repo[None], pats=files)
1011 for f in m.files(): 1011 for f in m.files():
1012 nf = util.normpath(f) 1012 nf = util.normpath(f)
1013 ignored = None 1013 ignored = None