Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 3930:01d98d68d697
Add revlog.LookupError exception, and use it instead of RevlogError.
Remove repo.LookupError, which devolves to the revlog version.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 18 Dec 2006 12:22:43 -0800 |
parents | b12eae71382d |
children | f2cbcf1e98b2 |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Dec 17 22:16:57 2006 -0600 +++ b/mercurial/commands.py Mon Dec 18 12:22:43 2006 -0800 @@ -2450,9 +2450,10 @@ hexfunc = ui.debugflag and hex or short for t, n in l: try: + hn = hexfunc(n) r = "%5d:%s" % (repo.changelog.rev(n), hexfunc(n)) - except KeyError: - r = " ?:?" + except revlog.LookupError: + r = " ?:%s" % hn if ui.quiet: ui.write("%s\n" % t) else: