comparison 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
comparison
equal deleted inserted replaced
3929:33988aaa1652 3930:01d98d68d697
2448 l = repo.tagslist() 2448 l = repo.tagslist()
2449 l.reverse() 2449 l.reverse()
2450 hexfunc = ui.debugflag and hex or short 2450 hexfunc = ui.debugflag and hex or short
2451 for t, n in l: 2451 for t, n in l:
2452 try: 2452 try:
2453 hn = hexfunc(n)
2453 r = "%5d:%s" % (repo.changelog.rev(n), hexfunc(n)) 2454 r = "%5d:%s" % (repo.changelog.rev(n), hexfunc(n))
2454 except KeyError: 2455 except revlog.LookupError:
2455 r = " ?:?" 2456 r = " ?:%s" % hn
2456 if ui.quiet: 2457 if ui.quiet:
2457 ui.write("%s\n" % t) 2458 ui.write("%s\n" % t)
2458 else: 2459 else:
2459 t = util.localsub(t, 30) 2460 t = util.localsub(t, 30)
2460 t += " " * (30 - util.locallen(t)) 2461 t += " " * (30 - util.locallen(t))