changeset 36168 | be73fa5b42d3 |
parent 36167 | 73621823a1ac |
child 36170 | 28830ba50687 |
--- a/hgext/histedit.py Tue Feb 13 17:25:25 2018 -0500 +++ b/hgext/histedit.py Tue Feb 13 17:25:43 2018 -0500 @@ -1415,9 +1415,8 @@ # 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.vfs.join('histedit-last-edit.txt'), 'w') - f.write(rules) - f.close() + with repo.vfs('histedit-last-edit.txt', 'wb') as f: + f.write(rules) return rules