##// END OF EJS Templates
i18n: add i18n comment to error messages of filesets predicates
FUJIWARA Katsunori -
r23113:c2dd79ad stable
parent child Browse files
Show More
@@ -251,6 +251,7 b' def hgignore(mctx, x):'
251 """``hgignore()``
251 """``hgignore()``
252 File that matches the active .hgignore pattern.
252 File that matches the active .hgignore pattern.
253 """
253 """
254 # i18n: "hgignore" is a keyword
254 getargs(x, 0, 0, _("hgignore takes no arguments"))
255 getargs(x, 0, 0, _("hgignore takes no arguments"))
255 ignore = mctx.ctx._repo.dirstate._ignore
256 ignore = mctx.ctx._repo.dirstate._ignore
256 return [f for f in mctx.subset if ignore(f)]
257 return [f for f in mctx.subset if ignore(f)]
@@ -388,6 +389,7 b' def subrepo(mctx, x):'
388 ctx = mctx.ctx
389 ctx = mctx.ctx
389 sstate = sorted(ctx.substate)
390 sstate = sorted(ctx.substate)
390 if x:
391 if x:
392 # i18n: "subrepo" is a keyword
391 pat = getstring(x, _("subrepo requires a pattern or no arguments"))
393 pat = getstring(x, _("subrepo requires a pattern or no arguments"))
392
394
393 import match as matchmod # avoid circular import issues
395 import match as matchmod # avoid circular import issues
General Comments 0
You need to be logged in to leave comments. Login now