Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/revlog.py @ 1393:67779d34cb52
Fix traceback on bad revlog.lookup
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 15 Oct 2005 15:49:05 -0700 |
parents | 0e2be889ccd7 |
children | cf9a1233738a |
line wrap: on
line diff
--- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -293,8 +293,8 @@ class revlog: for n in self.nodemap: if hex(n).startswith(id): c.append(n) - if len(c) > 1: raise KeyError("Ambiguous identifier") - if len(c) < 1: raise KeyError("No match found") + if len(c) > 1: raise RevlogError("Ambiguous identifier") + if len(c) < 1: raise RevlogError("No match found") return c[0] return None