##// END OF EJS Templates
patchbomb: add --desc, to specify a file containing a series description
Bryan O'Sullivan -
r4887:2f09df30 default
parent child Browse files
Show More
@@ -306,8 +306,12 b' def patchbomb(ui, repo, *revs, **opts):'
306 d = cdiffstat(_('Final summary:\n'), jumbo)
306 d = cdiffstat(_('Final summary:\n'), jumbo)
307 if d: body = '\n' + d
307 if d: body = '\n' + d
308
308
309 ui.write(_('\nWrite the introductory message for the patch series.\n\n'))
309 if opts['desc']:
310 body = ui.edit(body, sender)
310 body = open(opts['desc']).read()
311 else:
312 ui.write(_('\nWrite the introductory message for the '
313 'patch series.\n\n'))
314 body = ui.edit(body, sender)
311
315
312 msg = email.MIMEText.MIMEText(body)
316 msg = email.MIMEText.MIMEText(body)
313 msg['Subject'] = subj
317 msg['Subject'] = subj
@@ -417,6 +421,7 b' cmdtable = {'
417 ('c', 'cc', [], _('email addresses of copy recipients')),
421 ('c', 'cc', [], _('email addresses of copy recipients')),
418 ('d', 'diffstat', None, _('add diffstat output to messages')),
422 ('d', 'diffstat', None, _('add diffstat output to messages')),
419 ('', 'date', '', _('use the given date as the sending date')),
423 ('', 'date', '', _('use the given date as the sending date')),
424 ('', 'desc', '', _('use the given file as the series description')),
420 ('g', 'git', None, _('use git extended diff format')),
425 ('g', 'git', None, _('use git extended diff format')),
421 ('f', 'from', '', _('email address of sender')),
426 ('f', 'from', '', _('email address of sender')),
422 ('', 'plain', None, _('omit hg patch header')),
427 ('', 'plain', None, _('omit hg patch header')),
General Comments 0
You need to be logged in to leave comments. Login now