patchbomb: add tmpdir parameter to ui.edit call
authorSean Farley <sean@farley.io>
Mon, 16 Jan 2017 21:17:39 -0800
changeset 30838 eb78ec9e97b7
parent 30837 f59ab1b752bd
child 30839 d7f5a35ac6cd
child 30864 abf029200e19
patchbomb: add tmpdir parameter to ui.edit call
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Mon Jan 16 21:15:57 2017 -0800
+++ b/hgext/patchbomb.py	Mon Jan 16 21:17:39 2017 -0800
@@ -271,7 +271,7 @@
     else:
         ui.write(_('\nWrite the introductory message for the '
                    'patch series.\n\n'))
-        body = ui.edit(defaultbody, sender)
+        body = ui.edit(defaultbody, sender, tmpdir=repo.path)
         # Save series description in case sendmail fails
         msgfile = repo.vfs('last-email.txt', 'wb')
         msgfile.write(body)