hgext/patchbomb.py
changeset 34029 6e6452bc441d
parent 33436 9bb4decd43b0
child 34111 798b679680aa
equal deleted inserted replaced
34028:bfb38c5cebf4 34029:6e6452bc441d
   306     if opts.get('desc'):
   306     if opts.get('desc'):
   307         body = open(opts.get('desc')).read()
   307         body = open(opts.get('desc')).read()
   308     else:
   308     else:
   309         ui.write(_('\nWrite the introductory message for the '
   309         ui.write(_('\nWrite the introductory message for the '
   310                    'patch series.\n\n'))
   310                    'patch series.\n\n'))
   311         body = ui.edit(defaultbody, sender, repopath=repo.path)
   311         body = ui.edit(defaultbody, sender, repopath=repo.path,
       
   312                        action='patchbombbody')
   312         # Save series description in case sendmail fails
   313         # Save series description in case sendmail fails
   313         msgfile = repo.vfs('last-email.txt', 'wb')
   314         msgfile = repo.vfs('last-email.txt', 'wb')
   314         msgfile.write(body)
   315         msgfile.write(body)
   315         msgfile.close()
   316         msgfile.close()
   316     return body
   317     return body