##// END OF EJS Templates
index: use `index.has_node` in `tags.findglobaltags`...
marmoute -
r43849:103b4430 default draft
parent child Browse files
Show More
@@ -194,8 +194,8 b' def findglobaltags(ui, repo):'
194 return alltags
194 return alltags
195
195
196 for head in reversed(heads): # oldest to newest
196 for head in reversed(heads): # oldest to newest
197 assert (
197 assert repo.changelog.index.has_node(
198 head in repo.changelog.nodemap
198 head
199 ), b"tag cache returned bogus head %s" % short(head)
199 ), b"tag cache returned bogus head %s" % short(head)
200 fnodes = _filterfnodes(tagfnode, reversed(heads))
200 fnodes = _filterfnodes(tagfnode, reversed(heads))
201 alltags = _tagsfromfnodes(ui, repo, fnodes)
201 alltags = _tagsfromfnodes(ui, repo, fnodes)
General Comments 0
You need to be logged in to leave comments. Login now