# HG changeset patch # User FUJIWARA Katsunori # Date 2014-10-31 17:43:08 # Node ID c2dd79ad99cb72ce3087319f50001eb66aa88b8e # Parent 3226ed4579280f1fab556ef5a28c27b3693cde58 i18n: add i18n comment to error messages of filesets predicates diff --git a/mercurial/fileset.py b/mercurial/fileset.py --- a/mercurial/fileset.py +++ b/mercurial/fileset.py @@ -251,6 +251,7 @@ def hgignore(mctx, x): """``hgignore()`` File that matches the active .hgignore pattern. """ + # i18n: "hgignore" is a keyword getargs(x, 0, 0, _("hgignore takes no arguments")) ignore = mctx.ctx._repo.dirstate._ignore return [f for f in mctx.subset if ignore(f)] @@ -388,6 +389,7 @@ def subrepo(mctx, x): ctx = mctx.ctx sstate = sorted(ctx.substate) if x: + # i18n: "subrepo" is a keyword pat = getstring(x, _("subrepo requires a pattern or no arguments")) import match as matchmod # avoid circular import issues