comparison mercurial/debugcommands.py @ 44349:a0ec05d93c8e

cleanup: re-run black on the codebase Looks like a few patches have landed without having been blackened. I strongly suspect I should write a patch for baymax that blackens things on the way in... # skip-blame automatic formatting Differential Revision: https://phab.mercurial-scm.org/D8104
author Augie Fackler <augie@google.com>
date Mon, 10 Feb 2020 17:31:05 -0500
parents d8b53385b1bc
children c577bb4a04d4
comparison
equal deleted inserted replaced
44348:d8d4fa9a7f18 44349:a0ec05d93c8e
3427 for node in succsset[1:]: 3427 for node in succsset[1:]:
3428 ui.write(b' ') 3428 ui.write(b' ')
3429 ui.write(node2str(node)) 3429 ui.write(node2str(node))
3430 ui.write(b'\n') 3430 ui.write(b'\n')
3431 3431
3432
3432 @command(b'debugtagscache', []) 3433 @command(b'debugtagscache', [])
3433 def debugtagscache(ui, repo): 3434 def debugtagscache(ui, repo):
3434 """display the contents of .hg/cache/hgtagsfnodes1""" 3435 """display the contents of .hg/cache/hgtagsfnodes1"""
3435 cache = tagsmod.hgtagsfnodescache(repo.unfiltered()) 3436 cache = tagsmod.hgtagsfnodescache(repo.unfiltered())
3436 for r in repo: 3437 for r in repo:
3437 node = repo[r].node() 3438 node = repo[r].node()
3438 tagsnode = cache.getfnode(node, computemissing=False) 3439 tagsnode = cache.getfnode(node, computemissing=False)
3439 tagsnodedisplay = hex(tagsnode) if tagsnode else 'missing/invalid' 3440 tagsnodedisplay = hex(tagsnode) if tagsnode else 'missing/invalid'
3440 ui.write(b'%s %s %s\n' % (r, hex(node), tagsnodedisplay)) 3441 ui.write(b'%s %s %s\n' % (r, hex(node), tagsnodedisplay))
3442
3441 3443
3442 @command( 3444 @command(
3443 b'debugtemplate', 3445 b'debugtemplate',
3444 [ 3446 [
3445 (b'r', b'rev', [], _(b'apply template on changesets'), _(b'REV')), 3447 (b'r', b'rev', [], _(b'apply template on changesets'), _(b'REV')),