Just a little refactoring to simplify the next patch.
- Group Reviewers
- rHG0491004e2233: histedit: create transaction outside of try
It might be more technically correct to do this after state.write() happens. state.write() is intended to be called before the transaction, and it only technically works right here because it's ignoring the pending transaction (which could be fixed in the future).