mercurial/commands.py
changeset 22554 bfc50ff55f3f
parent 22553 67b6b82a6bbe
child 22559 4e0b696a1cb3
--- a/mercurial/commands.py	Sun Sep 21 12:46:23 2014 +0900
+++ b/mercurial/commands.py	Sun Sep 21 12:50:48 2014 +0900
@@ -5999,7 +5999,10 @@
     """
 
     fm = ui.formatter('tags', opts)
-    hexfunc = ui.debugflag and hex or short
+    if fm or ui.debugflag:
+        hexfunc = hex
+    else:
+        hexfunc = short
     tagtype = ""
 
     for t, n in reversed(repo.tagslist()):