diff -r d67732a4b58a -r 5aac1a1a5beb mercurial/debugcommands.py --- 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))