Mercurial > public > mercurial-scm > hg-stable
diff hgext/releasenotes.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 | 649d3ac37a12 |
children | 023ad45e2fd2 |
line wrap: on
line diff
--- a/hgext/releasenotes.py Tue Oct 08 15:15:37 2019 -0700 +++ b/hgext/releasenotes.py Tue Oct 08 15:06:18 2019 -0700 @@ -300,7 +300,7 @@ continue else: ui.write( - _(b"Invalid admonition '%s' present in changeset %s" b"\n") + _(b"Invalid admonition '%s' present in changeset %s\n") % (admonition.group(1), ctx.hex()[:12]) ) sim = lambda x: difflib.SequenceMatcher( @@ -376,7 +376,7 @@ # TODO consider using title as paragraph for more concise notes. if not paragraphs: repo.ui.warn( - _(b"error parsing releasenotes for revision: " b"'%s'\n") + _(b"error parsing releasenotes for revision: '%s'\n") % node.hex(ctx.node()) ) if title: @@ -422,7 +422,7 @@ continue elif block[b'type'] != b'paragraph': raise error.Abort( - _(b'unexpected block type in release notes: ' b'%s') + _(b'unexpected block type in release notes: %s') % block[b'type'] ) if title: