##// END OF EJS Templates
debugtagscache: verify that filenode is correct...
Pulkit Goyal -
r47401:e4e971ab default
parent child Browse files
Show More
@@ -3865,11 +3865,14 b' def debugsuccessorssets(ui, repo, *revs,'
3865 3865 def debugtagscache(ui, repo):
3866 3866 """display the contents of .hg/cache/hgtagsfnodes1"""
3867 3867 cache = tagsmod.hgtagsfnodescache(repo.unfiltered())
3868 flog = repo.file(b'.hgtags')
3868 3869 for r in repo:
3869 3870 node = repo[r].node()
3870 3871 tagsnode = cache.getfnode(node, computemissing=False)
3871 3872 if tagsnode:
3872 3873 tagsnodedisplay = hex(tagsnode)
3874 if not flog.hasnode(tagsnode):
3875 tagsnodedisplay += b' (unknown node)'
3873 3876 elif tagsnode is None:
3874 3877 tagsnodedisplay = b'missing'
3875 3878 else:
@@ -444,12 +444,12 b' debug command hides the corruption, both'
444 444
445 445 $ hg debugtagscache | tail -2
446 446 4 0c192d7d5e6b78a714de54a2e9627952a877e25a 0c04f2a8af31de17fab7422878ee5a2dadbc943d
447 5 8dbfe60eff306a54259cfe007db9e330e7ecf866 0c04f2a8deadde17fab7422878ee5a2dadbc943d
447 5 8dbfe60eff306a54259cfe007db9e330e7ecf866 0c04f2a8deadde17fab7422878ee5a2dadbc943d (unknown node)
448 448
449 449 $ rm -f .hg/cache/tags2-visible
450 450 $ hg debugtagscache | tail -2
451 451 4 0c192d7d5e6b78a714de54a2e9627952a877e25a 0c04f2a8af31de17fab7422878ee5a2dadbc943d
452 5 8dbfe60eff306a54259cfe007db9e330e7ecf866 0c04f2a8deadde17fab7422878ee5a2dadbc943d
452 5 8dbfe60eff306a54259cfe007db9e330e7ecf866 0c04f2a8deadde17fab7422878ee5a2dadbc943d (unknown node)
453 453
454 454 $ hg tags
455 455 abort: data/.hgtags.i@0c04f2a8deadde17fab7422878ee5a2dadbc943d: no match found
General Comments 0
You need to be logged in to leave comments. Login now