Patchwork [4,of,9] hg-ssh: parenthesize non-translated message

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Feb. 10, 2016, 1:58 p.m.
Message ID <6e1aaaef3a730cb2cb43.1455112722@feefifofum>
Download mbox | patch
Permalink /patch/13091/
State Accepted
Delegated to: Martin von Zweigbergk
Headers show

Comments

Katsunori FUJIWARA - Feb. 10, 2016, 1:58 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1455111868 -32400
#      Wed Feb 10 22:44:28 2016 +0900
# Node ID 6e1aaaef3a730cb2cb43df55d005b833f9b7377f
# Parent  3b132cd1f99f59a01465b4be596d5004af05ef33
hg-ssh: parenthesize non-translated message

This is fixing for 'missing _() in ui message (use () to hide
false-positives)' check-code rule.

check-code has overlooked this, because a file isn't recognized as one
to be checked (this problem is fixed by subsequent patch).

Patch

diff --git a/contrib/hg-ssh b/contrib/hg-ssh
--- a/contrib/hg-ssh
+++ b/contrib/hg-ssh
@@ -77,7 +77,7 @@  def main():
         sys.exit(255)
 
 def rejectpush(ui, **kwargs):
-    ui.warn("Permission denied\n")
+    ui.warn(("Permission denied\n"))
     # mercurial hooks use unix process conventions for hook return values
     # so a truthy return means failure
     return True