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

Sean Farley sean at farley.io
Tue Jan 17 00:41:14 EST 2017


# HG changeset patch
# User Sean Farley <sean at 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

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


More information about the Mercurial-devel mailing list