mercurial/debugcommands.py
changeset 36578 149fd142f498
parent 36534 5faeabb07cf5
child 36586 ff6b8484400b
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