[PATCH 6 of 7 STABLE] i18n: add i18n comment to error messages of filesets predicates
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Fri Oct 31 12:46:46 CDT 2014
# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1414777388 -32400
# Sat Nov 01 02:43:08 2014 +0900
# Branch stable
# Node ID cafb1097c3eb487e333351294ec3e76e3ad4362e
# Parent 8a243c5a3a168c21f349371698403da634a83e79
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 @@
"""``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 @@
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
More information about the Mercurial-devel
mailing list