From patchwork Wed Feb 10 13:58:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4,of,9] hg-ssh: parenthesize non-translated message From: Katsunori FUJIWARA X-Patchwork-Id: 13091 Message-Id: <6e1aaaef3a730cb2cb43.1455112722@feefifofum> To: mercurial-devel@mercurial-scm.org Date: Wed, 10 Feb 2016 22:58:42 +0900 # HG changeset patch # User FUJIWARA Katsunori # 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). 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