make revlog.LookupError inherit from KeyError
This will improve integration with external applications which depend on
KeyError, which is usually raised by __getitem__ calls.
--- a/mercurial/revlog.py Wed Jun 18 09:13:39 2008 +0100
+++ b/mercurial/revlog.py Wed Jun 18 12:48:04 2008 +0200
@@ -32,7 +32,7 @@
class RevlogError(Exception):
pass
-class LookupError(RevlogError):
+class LookupError(RevlogError, KeyError):
def __init__(self, name, index, message):
self.name = name
if isinstance(name, str) and len(name) == 20: