# HG changeset patch # User mpm@selenic.com # Date 1126638975 18000 # Node ID eb3cc5e2eb89fb69996adc346da5cd1b1ac95911 # Parent effff847870f7dd033c61f0f02f60098a2d42f72 Revert some exception type changes in revlog diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -291,8 +291,8 @@ class revlog: for n in self.nodemap: if hex(n).startswith(id): c.append(n) - if len(c) > 1: raise RevlogError("Ambiguous identifier") - if len(c) < 1: raise RevlogError("No match found") + if len(c) > 1: raise KeyError("Ambiguous identifier") + if len(c) < 1: raise KeyError("No match found") return c[0] return None