--- a/hgext/patchbomb.py Fri Nov 27 17:00:00 2020 -0500
+++ b/hgext/patchbomb.py Fri Nov 27 17:03:29 2020 -0500
@@ -110,34 +110,54 @@
configitem = registrar.configitem(configtable)
configitem(
- b'patchbomb', b'bundletype', default=None,
+ b'patchbomb',
+ b'bundletype',
+ default=None,
)
configitem(
- b'patchbomb', b'bcc', default=None,
+ b'patchbomb',
+ b'bcc',
+ default=None,
)
configitem(
- b'patchbomb', b'cc', default=None,
+ b'patchbomb',
+ b'cc',
+ default=None,
)
configitem(
- b'patchbomb', b'confirm', default=False,
+ b'patchbomb',
+ b'confirm',
+ default=False,
)
configitem(
- b'patchbomb', b'flagtemplate', default=None,
+ b'patchbomb',
+ b'flagtemplate',
+ default=None,
)
configitem(
- b'patchbomb', b'from', default=None,
+ b'patchbomb',
+ b'from',
+ default=None,
)
configitem(
- b'patchbomb', b'intro', default=b'auto',
+ b'patchbomb',
+ b'intro',
+ default=b'auto',
)
configitem(
- b'patchbomb', b'publicurl', default=None,
+ b'patchbomb',
+ b'publicurl',
+ default=None,
)
configitem(
- b'patchbomb', b'reply-to', default=None,
+ b'patchbomb',
+ b'reply-to',
+ default=None,
)
configitem(
- b'patchbomb', b'to', default=None,
+ b'patchbomb',
+ b'to',
+ default=None,
)
# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
@@ -148,8 +168,7 @@
def _addpullheader(seq, ctx):
- """Add a header pointing to a public URL where the changeset is available
- """
+ """Add a header pointing to a public URL where the changeset is available"""
repo = ctx.repo()
# experimental config: patchbomb.publicurl
# waiting for some logic that check that the changeset are available on the
@@ -656,7 +675,7 @@
helpcategory=command.CATEGORY_IMPORT_EXPORT,
)
def email(ui, repo, *revs, **opts):
- '''send changesets by email
+ """send changesets by email
By default, diffs are sent in the format generated by
:hg:`export`, one per message. The series starts with a "[PATCH 0
@@ -739,7 +758,7 @@
Before using this command, you will need to enable email in your
hgrc. See the [email] section in hgrc(5) for details.
- '''
+ """
opts = pycompat.byteskwargs(opts)
_charsets = mail._charsets(ui)