Whether the view's effective change filter contains every hash in `changes` (CB-10A: closure containment, never SetId/name similarity).
(
&self,
view: &str,
changes: &[Hash],
)
| 322 | /// Whether the view's effective change filter contains every hash in |
| 323 | /// `changes` (CB-10A: closure containment, never SetId/name similarity). |
| 324 | pub fn view_contains_changes( |
| 325 | &self, |
| 326 | view: &str, |
| 327 | changes: &[Hash], |
| 328 | ) -> Result<bool, RepositoryError> { |
| 329 | let txn = self.pristine.read_txn().map_err(pristine_error)?; |
| 330 | let view_state = txn.get_view(view).map_err(pristine_error)?.ok_or_else(|| { |
| 331 | RepositoryError::ViewNotFound { |
| 332 | name: view.to_string(), |
| 333 | } |
| 334 | })?; |
| 335 | let visibility = super::operation::visible_change_hashes(&txn, &view_state)?; |
| 336 | Ok(changes.iter().all(|change| visibility.contains(change))) |
| 337 | } |
| 338 | |
| 339 | /// The complete closure a Git commit is bound to (verified interpretation, |
| 340 | /// CB-9B R1), or `None` when the commit has no persisted closure. |
no test coverage detected