changeset 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 565c07036066
children eb78ec9e97b7
files hgext/histedit.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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