histedit: add tmpdir parameter to ui.edit call
authorSean Farley <sean@farley.io>
Mon, 16 Jan 2017 21:15:57 -0800
changeset 30837 f59ab1b752bd
parent 30836 565c07036066
child 30838 eb78ec9e97b7
histedit: add tmpdir parameter to ui.edit call
hgext/histedit.py
--- a/hgext/histedit.py	Mon Jan 16 21:15:21 2017 -0800
+++ b/hgext/histedit.py	Mon Jan 16 21:15:57 2017 -0800
@@ -1334,7 +1334,8 @@
     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