##// END OF EJS Templates
histedit: modernize write of histedit-last-edit file...
Augie Fackler -
r36186:be73fa5b default
parent child Browse files
Show More
@@ -1415,9 +1415,8 b' def ruleeditor(repo, ui, actions, editco'
1415 # Save edit rules in .hg/histedit-last-edit.txt in case
1415 # Save edit rules in .hg/histedit-last-edit.txt in case
1416 # the user needs to ask for help after something
1416 # the user needs to ask for help after something
1417 # surprising happens.
1417 # surprising happens.
1418 f = open(repo.vfs.join('histedit-last-edit.txt'), 'w')
1418 with repo.vfs('histedit-last-edit.txt', 'wb') as f:
1419 f.write(rules)
1419 f.write(rules)
1420 f.close()
1421
1420
1422 return rules
1421 return rules
1423
1422
General Comments 0
You need to be logged in to leave comments. Login now