[PATCH 3 of 4 emacs-for-augie] histedit: add tmpdir parameter to ui.edit call
Sean Farley
sean at farley.io
Tue Jan 17 05:41:13 UTC 2017
# HG changeset patch
# User Sean Farley <sean at 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
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')
More information about the Mercurial-devel
mailing list