Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
30836:565c07036066 | 30837:f59ab1b752bd |
---|---|
1332 actions += l | 1332 actions += l |
1333 | 1333 |
1334 rules = '\n'.join([act.torule() for act in actions]) | 1334 rules = '\n'.join([act.torule() for act in actions]) |
1335 rules += '\n\n' | 1335 rules += '\n\n' |
1336 rules += editcomment | 1336 rules += editcomment |
1337 rules = ui.edit(rules, ui.username(), {'prefix': 'histedit'}) | 1337 rules = ui.edit(rules, ui.username(), {'prefix': 'histedit'}, |
1338 tmpdir=repo.path) | |
1338 | 1339 |
1339 # Save edit rules in .hg/histedit-last-edit.txt in case | 1340 # Save edit rules in .hg/histedit-last-edit.txt in case |
1340 # the user needs to ask for help after something | 1341 # the user needs to ask for help after something |
1341 # surprising happens. | 1342 # surprising happens. |
1342 f = open(repo.join('histedit-last-edit.txt'), 'w') | 1343 f = open(repo.join('histedit-last-edit.txt'), 'w') |