diff -r 9f8eddd2723f -r d8b53385b1bc mercurial/debugcommands.py --- a/mercurial/debugcommands.py Sat Feb 08 10:22:47 2020 -0500 +++ b/mercurial/debugcommands.py Fri Feb 07 13:54:09 2020 -0500 @@ -76,6 +76,7 @@ sshpeer, sslutil, streamclone, + tags as tagsmod, templater, treediscovery, upgrade, @@ -3428,6 +3429,15 @@ ui.write(node2str(node)) ui.write(b'\n') +@command(b'debugtagscache', []) +def debugtagscache(ui, repo): + """display the contents of .hg/cache/hgtagsfnodes1""" + cache = tagsmod.hgtagsfnodescache(repo.unfiltered()) + for r in repo: + node = repo[r].node() + tagsnode = cache.getfnode(node, computemissing=False) + tagsnodedisplay = hex(tagsnode) if tagsnode else 'missing/invalid' + ui.write(b'%s %s %s\n' % (r, hex(node), tagsnodedisplay)) @command( b'debugtemplate',