comparison mercurial/debugcommands.py @ 44350:e80da7a63264

tags: fix some type confusion exposed in python 3 # skip-blame just b-prefix and %-format cleanup, no meaningful change Differential Revision: https://phab.mercurial-scm.org/D8107
author Augie Fackler <augie@google.com>
date Mon, 10 Feb 2020 20:47:19 -0500
parents 8374b69aef75
children f7459da77f23
comparison
equal deleted inserted replaced
44349:cd43cae79f25 44350:e80da7a63264
3496 """display the contents of .hg/cache/hgtagsfnodes1""" 3496 """display the contents of .hg/cache/hgtagsfnodes1"""
3497 cache = tagsmod.hgtagsfnodescache(repo.unfiltered()) 3497 cache = tagsmod.hgtagsfnodescache(repo.unfiltered())
3498 for r in repo: 3498 for r in repo:
3499 node = repo[r].node() 3499 node = repo[r].node()
3500 tagsnode = cache.getfnode(node, computemissing=False) 3500 tagsnode = cache.getfnode(node, computemissing=False)
3501 tagsnodedisplay = hex(tagsnode) if tagsnode else 'missing/invalid' 3501 tagsnodedisplay = hex(tagsnode) if tagsnode else b'missing/invalid'
3502 ui.write(b'%s %s %s\n' % (r, hex(node), tagsnodedisplay)) 3502 ui.write(b'%d %s %s\n' % (r, hex(node), tagsnodedisplay))
3503 3503
3504 3504
3505 @command( 3505 @command(
3506 b'debugtemplate', 3506 b'debugtemplate',
3507 [ 3507 [