Apply manifests in root→leaf order, reconciling scaffold views first. Returns one outcome per manifest, in apply order.
(
&self,
repo: &mut Repository,
manifests: &[ViewManifest],
)
| 661 | /// |
| 662 | /// Returns one outcome per manifest, in apply order. |
| 663 | fn apply_manifests( |
| 664 | &self, |
| 665 | repo: &mut Repository, |
| 666 | manifests: &[ViewManifest], |
| 667 | ) -> CliResult<Vec<ManifestApplyOutcome>> { |
| 668 | let mut outcomes = Vec::with_capacity(manifests.len()); |
| 669 | for manifest in manifests { |
| 670 | self.reconcile_scaffold_view(repo, manifest)?; |
| 671 | let outcome = repo.apply_view_manifest(manifest).map_err(|e| { |
| 672 | CliError::Internal(anyhow::anyhow!( |
| 673 | "apply manifest for view '{}': {}", |
| 674 | manifest.name, |
| 675 | e |
| 676 | )) |
| 677 | })?; |
| 678 | outcomes.push(outcome); |
| 679 | } |
| 680 | Ok(outcomes) |
| 681 | } |
| 682 | |
| 683 | /// Clone every remote view not already applied by the primary chain. |
| 684 | /// |
no test coverage detected