##// 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 sshpeer,
76 sshpeer,
77 sslutil,
77 sslutil,
78 streamclone,
78 streamclone,
79 tags as tagsmod,
79 templater,
80 templater,
80 treediscovery,
81 treediscovery,
81 upgrade,
82 upgrade,
@@ -3428,6 +3429,15 b' def debugsuccessorssets(ui, repo, *revs,'
3428 ui.write(node2str(node))
3429 ui.write(node2str(node))
3429 ui.write(b'\n')
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 @command(
3442 @command(
3433 b'debugtemplate',
3443 b'debugtemplate',
@@ -128,6 +128,7 b' Show debug commands if there are no othe'
128 debugssl
128 debugssl
129 debugsub
129 debugsub
130 debugsuccessorssets
130 debugsuccessorssets
131 debugtagscache
131 debugtemplate
132 debugtemplate
132 debuguigetpass
133 debuguigetpass
133 debuguiprompt
134 debuguiprompt
@@ -310,6 +311,7 b' Show all commands + options'
310 debugssl:
311 debugssl:
311 debugsub: rev
312 debugsub: rev
312 debugsuccessorssets: closest
313 debugsuccessorssets: closest
314 debugtagscache:
313 debugtemplate: rev, define
315 debugtemplate: rev, define
314 debuguigetpass: prompt
316 debuguigetpass: prompt
315 debuguiprompt: prompt
317 debuguiprompt: prompt
@@ -1055,6 +1055,8 b' Test list of internal help commands'
1055 debugsub (no help text available)
1055 debugsub (no help text available)
1056 debugsuccessorssets
1056 debugsuccessorssets
1057 show set of successors for revision
1057 show set of successors for revision
1058 debugtagscache
1059 display the contents of .hg/cache/hgtagsfnodes1
1058 debugtemplate
1060 debugtemplate
1059 parse and apply a template
1061 parse and apply a template
1060 debuguigetpass
1062 debuguigetpass
@@ -103,6 +103,9 b' The cache should have an empty entry for'
103 0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
103 0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
104 0010: ff ff ff ff ff ff ff ff b9 15 46 36 26 b7 b4 a7 |..........F6&...|
104 0010: ff ff ff ff ff ff ff ff b9 15 46 36 26 b7 b4 a7 |..........F6&...|
105 0020: 73 e0 9e e3 c5 2f 51 0e 19 e0 5e 1f f9 66 d8 59 |s..../Q...^..f.Y|
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 Repeat with cold tag cache:
110 Repeat with cold tag cache:
108
111
General Comments 0
You need to be logged in to leave comments. Login now