--- a/mercurial/error.py Tue Sep 18 16:28:17 2018 -0700
+++ b/mercurial/error.py Tue Sep 18 16:45:13 2018 -0700
@@ -34,7 +34,14 @@
self.hint = kw.pop(r'hint', None)
super(Hint, self).__init__(*args, **kw)
-class RevlogError(Hint, Exception):
+class StorageError(Hint, Exception):
+ """Raised when an error occurs in a storage layer.
+
+ Usually subclassed by a storage-specific exception.
+ """
+ __bytes__ = _tobytes
+
+class RevlogError(StorageError):
__bytes__ = _tobytes
class FilteredIndexError(IndexError):