Skip to content

Commit 150b7b8

Browse files
committed
fix(import[dry-run]) Align provenance report ordering with live-run output
why: The dry-run summary reported provenance tagging as the last item (after pinned), while the live-run reported it third (after updated URLs). This inconsistency was introduced in 039db68. what: - Move provenance_tagged_count log to after updated_url_count in dry-run - Both paths now follow: added → updated → provenance → pruned → unchanged → existing → pinned
1 parent 26999e0 commit 150b7b8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/vcspull/cli/import_cmd/_common.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,11 @@ def _run_import(
10501050
"[DRY-RUN] Would update %s repository URLs",
10511051
colors.info(str(updated_url_count)),
10521052
)
1053+
if provenance_tagged_count > 0:
1054+
log.info(
1055+
"[DRY-RUN] Would tag %s repositories with import provenance",
1056+
colors.info(str(provenance_tagged_count)),
1057+
)
10531058
if pruned_count > 0:
10541059
log.info(
10551060
"[DRY-RUN] Would prune %s stale entries",
@@ -1070,11 +1075,6 @@ def _run_import(
10701075
"[DRY-RUN] Skipped %s pinned repositories",
10711076
colors.info(str(skip_pinned_count)),
10721077
)
1073-
if provenance_tagged_count > 0:
1074-
log.info(
1075-
"[DRY-RUN] Would tag %s repositories with import provenance",
1076-
colors.info(str(provenance_tagged_count)),
1077-
)
10781078
if (
10791079
added_count > 0
10801080
or updated_url_count > 0

0 commit comments

Comments
 (0)