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
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
hgext/histedit.py | ||
---|---|---|
1117 | 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 | ||
---|---|---|
1117 | 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).