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 |
|
296 | if len(c) > 1: raise RevlogError("Ambiguous identifier") | |
297 |
if len(c) < 1: raise |
|
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