880 ignored = p |
881 ignored = p |
881 ignoredata = repo.dirstate._ignorefileandline(p) |
882 ignoredata = repo.dirstate._ignorefileandline(p) |
882 break |
883 break |
883 if ignored: |
884 if ignored: |
884 if ignored == nf: |
885 if ignored == nf: |
885 ui.write(_("%s is ignored\n") % f) |
886 ui.write(_("%s is ignored\n") % m.uipath(f)) |
886 else: |
887 else: |
887 ui.write(_("%s is ignored because of " |
888 ui.write(_("%s is ignored because of " |
888 "containing folder %s\n") |
889 "containing folder %s\n") |
889 % (f, ignored)) |
890 % (m.uipath(f), ignored)) |
890 ignorefile, lineno, line = ignoredata |
891 ignorefile, lineno, line = ignoredata |
891 ui.write(_("(ignore rule in %s, line %d: '%s')\n") |
892 ui.write(_("(ignore rule in %s, line %d: '%s')\n") |
892 % (ignorefile, lineno, line)) |
893 % (ignorefile, lineno, line)) |
893 else: |
894 else: |
894 ui.write(_("%s is not ignored\n") % f) |
895 ui.write(_("%s is not ignored\n") % m.uipath(f)) |
895 |
896 |
896 @command('debugindex', cmdutil.debugrevlogopts + |
897 @command('debugindex', cmdutil.debugrevlogopts + |
897 [('f', 'format', 0, _('revlog format'), _('FORMAT'))], |
898 [('f', 'format', 0, _('revlog format'), _('FORMAT'))], |
898 _('[-f FORMAT] -c|-m|FILE'), |
899 _('[-f FORMAT] -c|-m|FILE'), |
899 optionalrepo=True) |
900 optionalrepo=True) |