mercurial/debugcommands.py
changeset 46495 5aac1a1a5beb
parent 46479 c2435280ca63
child 46653 9306a16ca964
equal deleted inserted replaced
46494:d67732a4b58a 46495:5aac1a1a5beb
  3866     """display the contents of .hg/cache/hgtagsfnodes1"""
  3866     """display the contents of .hg/cache/hgtagsfnodes1"""
  3867     cache = tagsmod.hgtagsfnodescache(repo.unfiltered())
  3867     cache = tagsmod.hgtagsfnodescache(repo.unfiltered())
  3868     for r in repo:
  3868     for r in repo:
  3869         node = repo[r].node()
  3869         node = repo[r].node()
  3870         tagsnode = cache.getfnode(node, computemissing=False)
  3870         tagsnode = cache.getfnode(node, computemissing=False)
  3871         tagsnodedisplay = hex(tagsnode) if tagsnode else b'missing/invalid'
  3871         if tagsnode:
       
  3872             tagsnodedisplay = hex(tagsnode)
       
  3873         elif tagsnode is False:
       
  3874             tagsnodedisplay = b'invalid'
       
  3875         else:
       
  3876             tagsnodedisplay = b'missing'
       
  3877 
  3872         ui.write(b'%d %s %s\n' % (r, hex(node), tagsnodedisplay))
  3878         ui.write(b'%d %s %s\n' % (r, hex(node), tagsnodedisplay))
  3873 
  3879 
  3874 
  3880 
  3875 @command(
  3881 @command(
  3876     b'debugtemplate',
  3882     b'debugtemplate',