MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / phase3_finalize

Method phase3_finalize

atomic-cli/src/commands/git/parallel.rs:3464–3480  ·  view source on GitHub ↗

Phase 3: Finalization and verification.

(&self, stats: &ImportStats)

Source from the content-addressed store, hash-verified

3462
3463 /// Phase 3: Finalization and verification.
3464 fn phase3_finalize(&self, stats: &ImportStats) -> CliResult<()> {
3465 // Verify counts
3466 let expected = stats.commits_parsed;
3467 let actual = stats.changes_written
3468 + stats.empty_commits
3469 + stats.merge_commits
3470 + stats.self_push_skipped;
3471
3472 if actual != expected {
3473 print_warning(&format!(
3474 "Verification: {} commits parsed but {} changes created",
3475 expected, actual
3476 ));
3477 }
3478
3479 Ok(())
3480 }
3481}
3482
3483// ═══════════════════════════════════════════════════════════════════════════

Callers 1

import_branchMethod · 0.80

Calls 1

print_warningFunction · 0.85

Tested by

no test coverage detected