Mercurial > public > mercurial-scm > hg-stable
diff mercurial/merge.py @ 43117:8ff1ecfadcd1
cleanup: join string literals that are already on one line
Thanks to Kyle for noticing this and for providing the regular
expression to run on the codebase.
This patch has been reviewed by the test suite and they approved of
it.
# skip-blame: fallout from mass reformatting
Differential Revision: https://phab.mercurial-scm.org/D7028
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 08 Oct 2019 15:06:18 -0700 |
parents | d783f945a701 |
children | be384a2052aa |
line wrap: on
line diff
--- a/mercurial/merge.py Tue Oct 08 15:15:37 2019 -0700 +++ b/mercurial/merge.py Tue Oct 08 15:06:18 2019 -0700 @@ -760,7 +760,7 @@ if config not in valid: validstr = b', '.join([b"'" + v + b"'" for v in valid]) raise error.ConfigError( - _(b"%s.%s not valid " b"('%s' is none of %s)") + _(b"%s.%s not valid ('%s' is none of %s)") % (section, name, config, validstr) ) return config @@ -1048,7 +1048,7 @@ if fold.startswith(foldprefix) and not f.startswith(unfoldprefix): # the folded prefix matches but actual casing is different raise error.Abort( - _(b"case-folding collision between " b"%s and directory of %s") + _(b"case-folding collision between %s and directory of %s") % (lastfull, f) ) foldprefix = fold + b'/' @@ -1225,11 +1225,11 @@ b'which is not yet supported' ) % f, - hint=_(b'merging in the other direction ' b'may work'), + hint=_(b'merging in the other direction may work'), ) else: raise error.Abort( - _(b'conflict in file \'%s\' is outside ' b'narrow clone') % f + _(b'conflict in file \'%s\' is outside narrow clone') % f ) @@ -1992,7 +1992,7 @@ if usemergedriver: if wctx.isinmemory(): raise error.InMemoryMergeConflictsError( - b"in-memory merge does not " b"support mergedriver" + b"in-memory merge does not support mergedriver" ) ms.commit() proceed = driverpreprocess(repo, ms, wctx, labels=labels) @@ -2334,7 +2334,7 @@ if not mergeancestor and wc.branch() == p2.branch(): raise error.Abort( _(b"nothing to merge"), - hint=_(b"use 'hg update' " b"or check 'hg heads'"), + hint=_(b"use 'hg update' or check 'hg heads'"), ) if not force and (wc.files() or wc.deleted()): raise error.Abort(