changeset 28045:f68ded00cae5

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).
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 10 Feb 2016 22:44:28 +0900
parents e4f70e79a65f
children 742cf5b979ec
files contrib/hg-ssh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/hg-ssh	Wed Feb 10 22:44:28 2016 +0900
+++ b/contrib/hg-ssh	Wed Feb 10 22:44:28 2016 +0900
@@ -77,7 +77,7 @@
         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