##// END OF EJS Templates
Revert some exception type changes in revlog
mpm@selenic.com -
r1232:eb3cc5e2 default
parent child Browse files
Show More
@@ -291,8 +291,8 b' class revlog:'
291 for n in self.nodemap:
291 for n in self.nodemap:
292 if hex(n).startswith(id):
292 if hex(n).startswith(id):
293 c.append(n)
293 c.append(n)
294 if len(c) > 1: raise RevlogError("Ambiguous identifier")
294 if len(c) > 1: raise KeyError("Ambiguous identifier")
295 if len(c) < 1: raise RevlogError("No match found")
295 if len(c) < 1: raise KeyError("No match found")
296 return c[0]
296 return c[0]
297
297
298 return None
298 return None
General Comments 0
You need to be logged in to leave comments. Login now