changeset 1232:eb3cc5e2eb89

Revert some exception type changes in revlog
author mpm@selenic.com
date Tue, 13 Sep 2005 14:16:15 -0500
parents effff847870f
children 5381b0d88e9e
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Fri Sep 09 12:19:24 2005 -0700
+++ b/mercurial/revlog.py	Tue Sep 13 14:16:15 2005 -0500
@@ -291,8 +291,8 @@
             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