mercurial/commands.py
changeset 3930 01d98d68d697
parent 3919 b12eae71382d
child 3931 f2cbcf1e98b2
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))