Mercurial > public > mercurial-scm > hg
diff hgext/patchbomb.py @ 3887:57b797601b61
Merge with crew
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 14 Dec 2006 15:55:46 -0600 |
parents | abaee83ce0a6 ff49da8bd6ae |
children | 6b4127c7d52a |
line wrap: on
line diff
--- a/hgext/patchbomb.py Wed Dec 13 13:27:09 2006 -0600 +++ b/hgext/patchbomb.py Thu Dec 14 15:55:46 2006 -0600 @@ -215,8 +215,6 @@ bcc = [a.strip() for a in bcc if a.strip()] if len(patches) > 1: - ui.write(_('\nWrite the introductory message for the patch series.\n\n')) - tlen = len(str(len(patches))) subj = '[PATCH %0*d of %d] %s' % ( @@ -226,21 +224,13 @@ prompt('Subject:', rest = ' [PATCH %0*d of %d] ' % (tlen, 0, len(patches)))) - ui.write(_('Finish with ^D or a dot on a line by itself.\n\n')) - - body = [] - - while True: - try: l = raw_input() - except EOFError: break - if l == '.': break - body.append(l) - + body = '' if opts['diffstat']: d = cdiffstat(_('Final summary:\n'), jumbo) - if d: body.append('\n' + d) + if d: body = '\n' + d - body = '\n'.join(body) + '\n' + 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