Just a little refactoring to simplify the next patch.
Details
Details
- Reviewers
dsp durham - Group Reviewers
hg-reviewers - Commits
- rHG0491004e2233: histedit: create transaction outside of try
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
hgext/histedit.py | ||
---|---|---|
1120 | 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). |
hgext/histedit.py | ||
---|---|---|
1120 | Good point. I did notice that state.write(). Not sure why I didn't place this after. |
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).