The list of heads (branches and tags) are currently indexed at the start of a refresh. However, if a head is added or removed while a previous refresh is running (refreshes can sometimes overlap, especially on large repos, and there is code in place to handle that), then the head cache can get out of sync even while the commits themselves are indexed.
Pulling the list of heads directly from the SCM should not be expensive even on large repos, so we should do that instead of caching. (Looking up heads already hits the SCM directly.)
While we're at it, we should make loading them for the sidebar AJAX to speed up page render time. --> Separate ticket
Log in to post a comment.