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 |
|
294 | if len(c) > 1: raise KeyError("Ambiguous identifier") | |
295 |
if len(c) < 1: raise |
|
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