##// END OF EJS Templates
Fix traceback on bad revlog.lookup
Matt Mackall -
r1393:67779d34 default
parent child Browse files
Show More
@@ -293,8 +293,8 class revlog:
293 for n in self.nodemap:
293 for n in self.nodemap:
294 if hex(n).startswith(id):
294 if hex(n).startswith(id):
295 c.append(n)
295 c.append(n)
296 if len(c) > 1: raise KeyError("Ambiguous identifier")
296 if len(c) > 1: raise RevlogError("Ambiguous identifier")
297 if len(c) < 1: raise KeyError("No match found")
297 if len(c) < 1: raise RevlogError("No match found")
298 return c[0]
298 return c[0]
299
299
300 return None
300 return None
General Comments 0
You need to be logged in to leave comments. Login now