The size of the effective change set for a resolved ancestor chain (`chain[0]` = this view). Deduplicates across the chain.
(chain: &[&ViewSnapshot])
| 163 | /// The size of the effective change set for a resolved ancestor chain |
| 164 | /// (`chain[0]` = this view). Deduplicates across the chain. |
| 165 | pub fn effective_change_count(chain: &[&ViewSnapshot]) -> usize { |
| 166 | use std::collections::HashSet; |
| 167 | let mut seen: HashSet<&str> = HashSet::new(); |
| 168 | for snap in chain { |
| 169 | for h in &snap.own_changes { |
| 170 | seen.insert(h.as_str()); |
| 171 | } |
| 172 | } |
| 173 | seen.len() |
| 174 | } |
| 175 | |
| 176 | /// Render the legacy tab-separated manifest text this snapshot represents, |
| 177 | /// for the transitional `?view-manifest` compatibility path. New code |