repo: remove obsolete part of a TODO (we use the index to filter out non-heads)

This commit is contained in:
Martin von Zweigbergk 2021-03-16 23:55:20 -07:00
parent 30cd94f842
commit 07c2b2316f

View file

@ -619,8 +619,8 @@ impl<'r> MutableRepo<'r> {
fn enforce_view_invariants(&mut self) {
let view = self.view.store_view_mut();
// TODO: This is surely terribly slow on large repos, at least in its current
// form. We should make it faster (using the index) and avoid calling it in
// most cases (avoid adding a head that's already reachable in the view).
// form. We should avoid calling it in most cases (avoid adding a head that's
// already reachable in the view).
view.public_head_ids = self
.index
.heads(view.public_head_ids.iter())