[PATCH 2 of 2] revset: drop translation marker from error message of _notpublic()

Yuya Nishihara yuya at tcha.org
Tue May 19 14:58:15 UTC 2015


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1432045760 -32400
#      Tue May 19 23:29:20 2015 +0900
# Node ID a69c13d42ab06298f1d8c81a87a9f8d325d571ec
# Parent  aab49310051b2c7404e1c053779b52fe01aaa3ca
revset: drop translation marker from error message of _notpublic()

It is a kind of an internal error. End user won't see it.

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -1480,8 +1480,7 @@ def present(repo, subset, x):
 
 # for internal use
 def _notpublic(repo, subset, x):
-    # i18n: "public" is a keyword
-    getargs(x, 0, 0, _("_notpublic takes no arguments"))
+    getargs(x, 0, 0, "_notpublic takes no arguments")
     if repo._phasecache._phasesets:
         s = set()
         for u in repo._phasecache._phasesets[1:]:



More information about the Mercurial-devel mailing list