Show More
@@ -1086,6 +1086,7 b' def debugignore(ui, repo, *files, **opts' | |||
|
1086 | 1086 | ui.write("%s\n" % pycompat.byterepr(ignore)) |
|
1087 | 1087 | else: |
|
1088 | 1088 | m = scmutil.match(repo[None], pats=files) |
|
1089 | uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True) | |
|
1089 | 1090 | for f in m.files(): |
|
1090 | 1091 | nf = util.normpath(f) |
|
1091 | 1092 | ignored = None |
@@ -1102,16 +1103,16 b' def debugignore(ui, repo, *files, **opts' | |||
|
1102 | 1103 | break |
|
1103 | 1104 | if ignored: |
|
1104 | 1105 | if ignored == nf: |
|
1105 |
ui.write(_("%s is ignored\n") % |
|
|
1106 | ui.write(_("%s is ignored\n") % uipathfn(f)) | |
|
1106 | 1107 | else: |
|
1107 | 1108 | ui.write(_("%s is ignored because of " |
|
1108 | 1109 | "containing folder %s\n") |
|
1109 |
% ( |
|
|
1110 | % (uipathfn(f), ignored)) | |
|
1110 | 1111 | ignorefile, lineno, line = ignoredata |
|
1111 | 1112 | ui.write(_("(ignore rule in %s, line %d: '%s')\n") |
|
1112 | 1113 | % (ignorefile, lineno, line)) |
|
1113 | 1114 | else: |
|
1114 |
ui.write(_("%s is not ignored\n") % |
|
|
1115 | ui.write(_("%s is not ignored\n") % uipathfn(f)) | |
|
1115 | 1116 | |
|
1116 | 1117 | @command('debugindex', cmdutil.debugrevlogopts + cmdutil.formatteropts, |
|
1117 | 1118 | _('-c|-m|FILE')) |
General Comments 0
You need to be logged in to leave comments.
Login now