mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-28 02:21:12 +00:00
view: drop redundant filtering of ancestors of public heads
I added `enforce_invariants()` in 1f593a4193fd and then forgot to use it in 4db3d8d3a635.
This commit is contained in:
parent
f755c3f740
commit
e6aa2402a6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user