(
&self,
git_repo: &GitRepository,
branch_name: &str,
repo: &mut Repository,
imported_shas: &HashSet<String>,
known_states: &HashSet<atomic_core::types:
| 304 | /// Import a single branch into an Atomic view using parallel processing. |
| 305 | #[allow(clippy::too_many_arguments)] |
| 306 | fn import_branch( |
| 307 | &self, |
| 308 | git_repo: &GitRepository, |
| 309 | branch_name: &str, |
| 310 | repo: &mut Repository, |
| 311 | imported_shas: &HashSet<String>, |
| 312 | known_states: &HashSet<atomic_core::types::Merkle>, |
| 313 | mode: BranchImportMode, |
| 314 | plan: ProspectiveImportPlan, |
| 315 | ) -> CliResult<ImportStats> { |
| 316 | // Get repository name from remote URL or working directory |
| 317 | let repo_name = self.get_repo_name(git_repo); |
| 318 | |
| 319 | // Create parallel importer with options |
| 320 | let options = ParallelImportOptions { |
| 321 | incremental: self.incremental, |
| 322 | imported_shas: imported_shas.clone(), |
| 323 | repo_name, |
| 324 | mainline_only: mode.mainline_only, |
| 325 | graph_only: !self.with_crdt, |
| 326 | span_stream: self.uses_span(), |
| 327 | preserve_working_copy: mode.preserve_working_copy, |
| 328 | target_view: branch_name.to_string(), |
| 329 | known_states: known_states.clone(), |
| 330 | validate_equivalence: true, |
| 331 | verify_touched_paths: !self.full_tree_verification, |
| 332 | }; |
| 333 | |
| 334 | let importer = ParallelImporter::new(git_repo, options); |
| 335 | |
| 336 | if plan.is_stream() { |
| 337 | return importer.import_graph_stream_prevalidated(repo, plan, self.stream_limits()?); |
| 338 | } |
| 339 | |
| 340 | // Run the three-phase parallel import |
| 341 | let stats = importer.import_prevalidated(branch_name, repo, plan)?; |
| 342 | // Full per-import synthesis counters (review R5: the per-import |
| 343 | // aggregation wires the real import statistics, not inferred ones). |
| 344 | Ok(stats) |
| 345 | } |
| 346 | |
| 347 | /// Seed a branch's missing view from an existing view's state at the |
| 348 | /// nearest first-parent ancestor this repository already interpreted, so |
no test coverage detected