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

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

Comments

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

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
index 2c64d1d..ae860d8 100644
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -1332,11 +1332,12 @@  def ruleeditor(repo, ui, actions, editco
             actions += l
 
     rules = '\n'.join([act.torule() for act in actions])
     rules += '\n\n'
     rules += editcomment
-    rules = ui.edit(rules, ui.username(), {'prefix': 'histedit'})
+    rules = ui.edit(rules, ui.username(), {'prefix': 'histedit'},
+                    tmpdir=repo.path)
 
     # Save edit rules in .hg/histedit-last-edit.txt in case
     # the user needs to ask for help after something
     # surprising happens.
     f = open(repo.join('histedit-last-edit.txt'), 'w')