Mercurial > hg
diff hgext/patchbomb.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 | f1c5358f0d65 |
children | 3460eee570f7 |
line wrap: on
line diff
--- a/hgext/patchbomb.py Tue Oct 08 15:15:37 2019 -0700 +++ b/hgext/patchbomb.py Tue Oct 08 15:06:18 2019 -0700 @@ -162,7 +162,7 @@ # destination before patchbombing anything. publicurl = repo.ui.config(b'patchbomb', b'publicurl') if publicurl: - return b'Available At %s\n' b'# hg pull %s -r %s' % ( + return b'Available At %s\n# hg pull %s -r %s' % ( publicurl, publicurl, ctx, @@ -343,9 +343,7 @@ prev = repo[b'.'].rev() for r in revs: if r == prev and (repo[None].files() or repo[None].deleted()): - ui.warn( - _(b'warning: working directory has ' b'uncommitted changes\n') - ) + ui.warn(_(b'warning: working directory has uncommitted changes\n')) output = stringio() cmdutil.exportfile( repo, [r], output, opts=patch.difffeatureopts(ui, opts, git=True) @@ -391,7 +389,7 @@ body = open(opts.get(r'desc')).read() else: ui.write( - _(b'\nWrite the introductory message for the ' b'patch series.\n\n') + _(b'\nWrite the introductory message for the patch series.\n\n') ) body = ui.edit( defaultbody, sender, repopath=repo.path, action=b'patchbombbody' @@ -911,7 +909,7 @@ ui.write(ds, label=b'patchbomb.diffstats') ui.write(b'\n') if ui.promptchoice( - _(b'are you sure you want to send (yn)?' b'$$ &Yes $$ &No') + _(b'are you sure you want to send (yn)?$$ &Yes $$ &No') ): raise error.Abort(_(b'patchbomb canceled'))