Commit 039db68
committed
fix(import[dry-run]) Include provenance tagging in dry-run change detection
why: The dry-run gate only checked added/updated/pruned counts but
omitted provenance_tagged_count, causing "No changes to write" even
when a real run would save provenance tags. The count was always 0
during dry-run because it was only incremented inside `if not dry_run`.
what:
- Restructure SKIP_UNCHANGED block to count provenance tagging
regardless of dry_run, while only mutating config when not dry_run
- Add needs_tag check for idempotent counting (only count when the
tag is actually missing or different)
- Add "[DRY-RUN] Would tag N repositories" report line
- Include provenance_tagged_count in the "Would write to" gate
- Add test_import_dry_run_provenance_tag_shows_write_message1 parent 3f27231 commit 039db68
2 files changed
Lines changed: 82 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
968 | | - | |
| 968 | + | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
975 | 984 | | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
980 | 990 | | |
981 | 991 | | |
982 | 992 | | |
| |||
1056 | 1066 | | |
1057 | 1067 | | |
1058 | 1068 | | |
1059 | | - | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1060 | 1080 | | |
1061 | 1081 | | |
1062 | 1082 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4138 | 4138 | | |
4139 | 4139 | | |
4140 | 4140 | | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
| 4161 | + | |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
| 4169 | + | |
| 4170 | + | |
| 4171 | + | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
| 4175 | + | |
| 4176 | + | |
| 4177 | + | |
| 4178 | + | |
| 4179 | + | |
| 4180 | + | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
| 4190 | + | |
| 4191 | + | |
| 4192 | + | |
4141 | 4193 | | |
4142 | 4194 | | |
4143 | 4195 | | |
| |||
0 commit comments