##// END OF EJS Templates
tags: add a debug command to display .hg/cache/hgtagsfnodes1...
Valentin Gatien-Baron -
r44772:d8b53385 default
parent child Browse files
Show More
@@ -76,6 +76,7 b' from . import ('
76 76 sshpeer,
77 77 sslutil,
78 78 streamclone,
79 tags as tagsmod,
79 80 templater,
80 81 treediscovery,
81 82 upgrade,
@@ -3428,6 +3429,15 b' def debugsuccessorssets(ui, repo, *revs,'
3428 3429 ui.write(node2str(node))
3429 3430 ui.write(b'\n')
3430 3431
3432 @command(b'debugtagscache', [])
3433 def debugtagscache(ui, repo):
3434 """display the contents of .hg/cache/hgtagsfnodes1"""
3435 cache = tagsmod.hgtagsfnodescache(repo.unfiltered())
3436 for r in repo:
3437 node = repo[r].node()
3438 tagsnode = cache.getfnode(node, computemissing=False)
3439 tagsnodedisplay = hex(tagsnode) if tagsnode else 'missing/invalid'
3440 ui.write(b'%s %s %s\n' % (r, hex(node), tagsnodedisplay))
3431 3441
3432 3442 @command(
3433 3443 b'debugtemplate',
@@ -128,6 +128,7 b' Show debug commands if there are no othe'
128 128 debugssl
129 129 debugsub
130 130 debugsuccessorssets
131 debugtagscache
131 132 debugtemplate
132 133 debuguigetpass
133 134 debuguiprompt
@@ -310,6 +311,7 b' Show all commands + options'
310 311 debugssl:
311 312 debugsub: rev
312 313 debugsuccessorssets: closest
314 debugtagscache:
313 315 debugtemplate: rev, define
314 316 debuguigetpass: prompt
315 317 debuguiprompt: prompt
@@ -1055,6 +1055,8 b' Test list of internal help commands'
1055 1055 debugsub (no help text available)
1056 1056 debugsuccessorssets
1057 1057 show set of successors for revision
1058 debugtagscache
1059 display the contents of .hg/cache/hgtagsfnodes1
1058 1060 debugtemplate
1059 1061 parse and apply a template
1060 1062 debuguigetpass
@@ -103,6 +103,9 b' The cache should have an empty entry for'
103 103 0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
104 104 0010: ff ff ff ff ff ff ff ff b9 15 46 36 26 b7 b4 a7 |..........F6&...|
105 105 0020: 73 e0 9e e3 c5 2f 51 0e 19 e0 5e 1f f9 66 d8 59 |s..../Q...^..f.Y|
106 $ hg debugtagscache
107 0 acb14030fe0a21b60322c440ad2d20cf7685a376 missing/invalid
108 1 b9154636be938d3d431e75a7c906504a079bfe07 26b7b4a773e09ee3c52f510e19e05e1ff966d859
106 109
107 110 Repeat with cold tag cache:
108 111
General Comments 0
You need to be logged in to leave comments. Login now