equal
deleted
inserted
replaced
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 |