diff -r 67b6b82a6bbe -r bfc50ff55f3f mercurial/commands.py --- 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()):