changeset 24863:f3558829471b stable

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.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sat, 25 Apr 2015 23:44:53 +0900
parents c82d88dfaf59
children bff42a92012e
files mercurial/repair.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'