mercurial/commands.py
changeset 22554 bfc50ff55f3f
parent 22553 67b6b82a6bbe
child 22559 4e0b696a1cb3
equal deleted inserted replaced
22553:67b6b82a6bbe 22554:bfc50ff55f3f
  5997 
  5997 
  5998     Returns 0 on success.
  5998     Returns 0 on success.
  5999     """
  5999     """
  6000 
  6000 
  6001     fm = ui.formatter('tags', opts)
  6001     fm = ui.formatter('tags', opts)
  6002     hexfunc = ui.debugflag and hex or short
  6002     if fm or ui.debugflag:
       
  6003         hexfunc = hex
       
  6004     else:
       
  6005         hexfunc = short
  6003     tagtype = ""
  6006     tagtype = ""
  6004 
  6007 
  6005     for t, n in reversed(repo.tagslist()):
  6008     for t, n in reversed(repo.tagslist()):
  6006         hn = hexfunc(n)
  6009         hn = hexfunc(n)
  6007         label = 'tags.normal'
  6010         label = 'tags.normal'