Comments
Patch
@@ -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')