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

login
register
mail settings
Submitter Yuya Nishihara
Date May 19, 2015, 2:58 p.m.
Message ID <a69c13d42ab06298f1d8.1432047495@mimosa>
Download mbox | patch
Permalink /patch/9173/
State Accepted
Headers show

Comments

Yuya Nishihara - May 19, 2015, 2:58 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.

Patch

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:]: