From e6aa2402a60134c28938adf23bfc601e6754ffab Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Mon, 8 Mar 2021 23:10:18 -0800 Subject: [PATCH] view: drop redundant filtering of ancestors of public heads I added `enforce_invariants()` in 1f593a4193fd and then forgot to use it in 4db3d8d3a635. --- lib/src/view.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/view.rs b/lib/src/view.rs index c18fa2dee..ab36bf2d4 100644 --- a/lib/src/view.rs +++ b/lib/src/view.rs @@ -203,7 +203,6 @@ pub fn merge_views( for added_head in right.public_head_ids.difference(&base.public_head_ids) { result.public_head_ids.insert(added_head.clone()); } - result.public_head_ids = heads_of_set(store, result.public_head_ids.into_iter()); for removed_head in base.head_ids.difference(&right.head_ids) { result.head_ids.remove(removed_head);