# HG changeset patch # User Bryan O'Sullivan # Date 1184622227 25200 # Node ID 2f09df302f30bab25b29e5cc835e99170c63f936 # Parent d77accdd236e52c21496b843acda0091d099780a patchbomb: add --desc, to specify a file containing a series description diff -r d77accdd236e -r 2f09df302f30 hgext/patchbomb.py --- a/hgext/patchbomb.py Sun Jul 15 21:05:38 2007 +0200 +++ b/hgext/patchbomb.py Mon Jul 16 14:43:47 2007 -0700 @@ -306,8 +306,12 @@ d = cdiffstat(_('Final summary:\n'), jumbo) if d: body = '\n' + d - ui.write(_('\nWrite the introductory message for the patch series.\n\n')) - body = ui.edit(body, sender) + if opts['desc']: + body = open(opts['desc']).read() + else: + ui.write(_('\nWrite the introductory message for the ' + 'patch series.\n\n')) + body = ui.edit(body, sender) msg = email.MIMEText.MIMEText(body) msg['Subject'] = subj @@ -417,6 +421,7 @@ ('c', 'cc', [], _('email addresses of copy recipients')), ('d', 'diffstat', None, _('add diffstat output to messages')), ('', 'date', '', _('use the given date as the sending date')), + ('', 'desc', '', _('use the given file as the series description')), ('g', 'git', None, _('use git extended diff format')), ('f', 'from', '', _('email address of sender')), ('', 'plain', None, _('omit hg patch header')),