mercurial/debugcommands.py
changeset 46495 5aac1a1a5beb
parent 46479 c2435280ca63
child 46653 9306a16ca964
--- a/mercurial/debugcommands.py	Thu Feb 11 20:36:46 2021 -0800
+++ b/mercurial/debugcommands.py	Thu Dec 24 11:21:23 2020 -0500
@@ -3868,7 +3868,13 @@
     for r in repo:
         node = repo[r].node()
         tagsnode = cache.getfnode(node, computemissing=False)
-        tagsnodedisplay = hex(tagsnode) if tagsnode else b'missing/invalid'
+        if tagsnode:
+            tagsnodedisplay = hex(tagsnode)
+        elif tagsnode is False:
+            tagsnodedisplay = b'invalid'
+        else:
+            tagsnodedisplay = b'missing'
+
         ui.write(b'%d %s %s\n' % (r, hex(node), tagsnodedisplay))