##// END OF EJS Templates
tags: avoid expensive access to repo.changelog in a loop...
marmoute -
r51835:75d3306f stable
parent child Browse files
Show More
@@ -190,10 +190,9 b' def findglobaltags(ui, repo):'
190 _updatetags(cachetags, alltags)
190 _updatetags(cachetags, alltags)
191 return alltags
191 return alltags
192
192
193 has_node = repo.changelog.index.has_node
193 for head in reversed(heads): # oldest to newest
194 for head in reversed(heads): # oldest to newest
194 assert repo.changelog.index.has_node(
195 assert has_node(head), b"tag cache returned bogus head %s" % short(head)
195 head
196 ), b"tag cache returned bogus head %s" % short(head)
197 fnodes = _filterfnodes(tagfnode, reversed(heads))
196 fnodes = _filterfnodes(tagfnode, reversed(heads))
198 alltags = _tagsfromfnodes(ui, repo, fnodes)
197 alltags = _tagsfromfnodes(ui, repo, fnodes)
199
198
General Comments 0
You need to be logged in to leave comments. Login now