Phase 3: Finalization and verification.
(&self, stats: &ImportStats)
| 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 | // ═══════════════════════════════════════════════════════════════════════════ |
no test coverage detected