Mercurial > hg
comparison hgext/patchbomb.py @ 30838:eb78ec9e97b7
patchbomb: add tmpdir parameter to ui.edit call
author | Sean Farley <sean@farley.io> |
---|---|
date | Mon, 16 Jan 2017 21:17:39 -0800 |
parents | a150173da1c1 |
children | 7080652af6e6 |
comparison
equal
deleted
inserted
replaced
30837:f59ab1b752bd | 30838:eb78ec9e97b7 |
---|---|
269 if opts.get('desc'): | 269 if opts.get('desc'): |
270 body = open(opts.get('desc')).read() | 270 body = open(opts.get('desc')).read() |
271 else: | 271 else: |
272 ui.write(_('\nWrite the introductory message for the ' | 272 ui.write(_('\nWrite the introductory message for the ' |
273 'patch series.\n\n')) | 273 'patch series.\n\n')) |
274 body = ui.edit(defaultbody, sender) | 274 body = ui.edit(defaultbody, sender, tmpdir=repo.path) |
275 # Save series description in case sendmail fails | 275 # Save series description in case sendmail fails |
276 msgfile = repo.vfs('last-email.txt', 'wb') | 276 msgfile = repo.vfs('last-email.txt', 'wb') |
277 msgfile.write(body) | 277 msgfile.write(body) |
278 msgfile.close() | 278 msgfile.close() |
279 return body | 279 return body |