repair: avoid string concatenation by + operator stable
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Sat, 25 Apr 2015 23:44:53 +0900
branchstable
changeset 24863 f3558829471b
parent 24862 c82d88dfaf59
child 24864 bff42a92012e
repair: avoid string concatenation by + operator String concatenation by "+" operator causes failure of extracting messages to be translated. Python automatically concatenates strings separated by whitespaces into one string.
mercurial/repair.py
--- a/mercurial/repair.py	Sat Apr 25 15:38:06 2015 +0900
+++ b/mercurial/repair.py	Sat Apr 25 23:44:53 2015 +0900
@@ -18,7 +18,7 @@
     if usebundle2:
         cgversion = repo.ui.config('experimental', 'strip-bundle2-version')
         if cgversion not in changegroup.packermap:
-            repo.ui.warn(_('unknown strip-bundle2-version value %r; ' +
+            repo.ui.warn(_('unknown strip-bundle2-version value %r; '
                             'should be one of %r\n') %
                          (cgversion, sorted(changegroup.packermap.keys()),))
             cgversion = '01'