Apply manifests in root→leaf order, reconciling scaffold views first. Returns one outcome per manifest, in apply order.
(
&self,
repo: &mut Repository,
manifests: &[ViewManifest],
)
| 783 | /// |
| 784 | /// Returns one outcome per manifest, in apply order. |
| 785 | fn apply_manifests( |
| 786 | &self, |
| 787 | repo: &mut Repository, |
| 788 | manifests: &[ViewManifest], |
| 789 | ) -> CliResult<Vec<ManifestApplyOutcome>> { |
| 790 | let mut outcomes = Vec::with_capacity(manifests.len()); |
| 791 | for manifest in manifests { |
| 792 | self.reconcile_scaffold_view(repo, manifest)?; |
| 793 | let outcome = repo.apply_view_manifest(manifest).map_err(|e| { |
| 794 | CliError::Internal(anyhow::anyhow!( |
| 795 | "apply manifest for view '{}': {}", |
| 796 | manifest.name, |
| 797 | e |
| 798 | )) |
| 799 | })?; |
| 800 | outcomes.push(outcome); |
| 801 | } |
| 802 | Ok(outcomes) |
| 803 | } |
| 804 | |
| 805 | /// Clone every remote view not already applied by the primary chain. |
| 806 | /// |
no test coverage detected