Patchwork [5,of,7] subrepo: make a message translatable

login
register
mail settings
Submitter Katsunori FUJIWARA
Date May 25, 2016, 5:01 p.m.
Message ID <6a507bfef90e8b56e8a7.1464195704@feefifofum>
Download mbox | patch
Permalink /patch/15198/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - May 25, 2016, 5:01 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1464195454 -32400
#      Thu May 26 01:57:34 2016 +0900
# Node ID 6a507bfef90e8b56e8a7b81dcefed5d953f37f50
# Parent  02be7c0268655e6c2b08d6c18f66922188dcfcd4
subrepo: make a message translatable

This message has been overlooked by check-code, because it starts with
non-alphabet character ('%').

This is also a part of preparation for making "missing _() in ui
message" detection of check-code more exact.

Patch

diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -585,7 +585,7 @@  class abstractsubrepo(object):
         return 1
 
     def revert(self, substate, *pats, **opts):
-        self.ui.warn('%s: reverting %s subrepos is unsupported\n' \
+        self.ui.warn(_('%s: reverting %s subrepos is unsupported\n') \
             % (substate[0], substate[2]))
         return []