This is an archive of the discontinued Mercurial Phabricator instance.

state: raise CorruptedState error isntead of ProgrammingError
ClosedPublic

Authored by pulkit on May 22 2018, 5:52 PM.

Details

Summary

There are old state files which don't have a version number in top of them and
hence we have to read them to check whether they are good or not.
ProgrammingError is not apt for this case. Thanks to Yuya for suggesting
CorruptedState error.

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

pulkit created this revision.May 22 2018, 5:52 PM
This revision was automatically updated to reflect the committed changes.