diff hgext/histedit.py @ 30837:f59ab1b752bd

histedit: add tmpdir parameter to ui.edit call
author Sean Farley <sean@farley.io>
date Mon, 16 Jan 2017 21:15:57 -0800
parents 318a24b52eeb
children 7080652af6e6
line wrap: on
line diff
--- 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