# HG changeset patch # User Pierre-Yves David # Date 2019-11-08 10:44:23 # Node ID 103b4430c1ae2669a4baf74476b667f528535bfc # Parent ed9b0abce624bb5e4a84218f1cf9fa17913be3c3 index: use `index.has_node` in `tags.findglobaltags` Differential Revision: https://phab.mercurial-scm.org/D7342 diff --git a/mercurial/tags.py b/mercurial/tags.py --- a/mercurial/tags.py +++ b/mercurial/tags.py @@ -194,8 +194,8 @@ def findglobaltags(ui, repo): 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)