Commit d904bee
(Risk 2) Keep phantom hotfix hfrev/version fresh in update_versions
Phantom hotfixes (stored in _phantom_hotfixes for non-hotfix PR cascades)
were never iterated by update_versions(), leaving their .hfrev and
.version frozen at the initial pre-GA values forever. Today only
.minor is consumed (_update_major_versions), so there is no live bug,
but any future caller reading .hfrev or .version would silently get
stale data.
Apply the same hfrev advancement logic to phantom hotfixes inside
update_versions() so their state stays consistent with the cascade.
Add a QuickTest that builds a cascade with a phantom hotfix, processes
a GA tag, and asserts hfrev advances to 1. The test fails without the
fix because the phantom is never updated.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7424b7b commit d904bee
2 files changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
543 | 570 | | |
544 | 571 | | |
545 | 572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1021 | 1032 | | |
1022 | 1033 | | |
1023 | 1034 | | |
| |||
0 commit comments