Patchwork [4,of,4,emacs-for-augie] patchbomb: add tmpdir parameter to ui.edit call

login
register
mail settings
Submitter Sean Farley
Date Jan. 17, 2017, 5:41 a.m.
Message ID <5b2cff25354c9ad573be.1484631674@1.0.0.127.in-addr.arpa>
Download mbox | patch
Permalink /patch/18233/
State Accepted
Headers show

Comments

Sean Farley - Jan. 17, 2017, 5:41 a.m.
# HG changeset patch
# User Sean Farley <sean@farley.io>
# Date 1484630259 28800
#      Mon Jan 16 21:17:39 2017 -0800
# Node ID 5b2cff25354c9ad573be89406a0d04499038d982
# Parent  6dca71d18dddac43cbb962a3de1c560d4b479668
patchbomb: add tmpdir parameter to ui.edit call

Patch

diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
index de6ff1e..f7763eb 100644
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -269,11 +269,11 @@  def _getdescription(repo, defaultbody, s
     if opts.get('desc'):
         body = open(opts.get('desc')).read()
     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)
         msgfile.close()
     return body