Patchwork [6,of,7,STABLE] i18n: add i18n comment to error messages of filesets predicates

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Oct. 31, 2014, 5:46 p.m.
Message ID <cafb1097c3eb487e3333.1414777606@feefifofum>
Download mbox | patch
Permalink /patch/6499/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - Oct. 31, 2014, 5:46 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@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

Patch

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