equal
deleted
inserted
replaced
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 |