[PATCH 5 of 7] subrepo: make a message translatable

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Wed May 25 13:01:44 EDT 2016


# HG changeset patch
# User FUJIWARA Katsunori <foozy at 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.

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


More information about the Mercurial-devel mailing list