Mercurial > public > mercurial-scm > hg
diff mercurial/repair.py @ 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 | e0e28e910fa3 |
children | 678d0bfdd31a |
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'