Apply manifests in root→leaf order, reconciling scaffold views first. Returns one outcome per manifest, in apply order.
(
&self,
repo: &mut Repository,
manifests: &[ViewManifest],
)
| 573 | /// |
| 574 | /// Returns one outcome per manifest, in apply order. |
| 575 | fn apply_manifests( |
| 576 | &self, |
| 577 | repo: &mut Repository, |
| 578 | manifests: &[ViewManifest], |
| 579 | ) -> CliResult<Vec<ManifestApplyOutcome>> { |
| 580 | let mut outcomes = Vec::with_capacity(manifests.len()); |
| 581 | for manifest in manifests { |
| 582 | self.reconcile_scaffold_view(repo, manifest)?; |
| 583 | let outcome = repo.apply_view_manifest(manifest).map_err(|e| { |
| 584 | CliError::Internal(anyhow::anyhow!( |
| 585 | "apply manifest for view '{}': {}", |
| 586 | manifest.name, |
| 587 | e |
| 588 | )) |
| 589 | })?; |
| 590 | outcomes.push(outcome); |
| 591 | } |
| 592 | Ok(outcomes) |
| 593 | } |
| 594 | |
| 595 | /// Clone every remote view not already applied by the primary chain. |
| 596 | /// |
no test coverage detected