changeset 1232 | eb3cc5e2eb89 |
parent 1218 | cde6818e082a |
child 1322 | b3d44e9b3092 |
--- 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