index: use `index.has_node` in `tags.findglobaltags`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 08 Nov 2019 11:44:23 +0100
changeset 43543 2c3afd083e45
parent 43542 5f347567589b
child 43544 886ec3962c66
index: use `index.has_node` in `tags.findglobaltags` Differential Revision: https://phab.mercurial-scm.org/D7342
mercurial/tags.py
--- 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)