This is an archive of the discontinued Mercurial Phabricator instance.

global: replace most uses of RevlogError with StorageError (API)
ClosedPublic

Authored by indygreg on Sep 18 2018, 8:06 PM.

Details

Summary

When catching errors in storage, we should be catching
StorageError instead of RevlogError. When throwing errors related
to storage, we shouldn't be using RevlogError unless we know
the error stemmed from revlogs. And we only reliably know that
if we're in revlog.py or are inheriting from a type defined in
revlog.py.

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.