index: use `index.has_node` in `tags.findglobaltags`
Differential Revision: https://phab.mercurial-scm.org/D7342
--- a/mercurial/tags.py Fri Nov 08 13:24:54 2019 +0100
+++ b/mercurial/tags.py Fri Nov 08 11:44:23 2019 +0100
@@ -194,8 +194,8 @@
return alltags
for head in reversed(heads): # oldest to newest
- assert (
- head in repo.changelog.nodemap
+ assert repo.changelog.index.has_node(
+ head
), b"tag cache returned bogus head %s" % short(head)
fnodes = _filterfnodes(tagfnode, reversed(heads))
alltags = _tagsfromfnodes(ui, repo, fnodes)