Commit b438129
Fix regressions from HotfixBranch.hfrev=0 default
Two regressions introduced when HotfixBranch.version was changed to
include .0 suffix by default (hfrev=0 class attribute):
1. create_branch.py: archive-tag check fired for HotfixBranch because
version='X.Y.Z.0' matched the GA release tag 'X.Y.Z.0'. Skip this
check for hotfix branches since their archive tags use the format
'X.Y.Z.hfrev.archived_hotfix_branch'. Also fix branch_from to use
the 3-digit base form '%d.%d.%d.0' instead of version+'.0' which
would produce 'X.Y.Z.0.0'.
2. branches.py: has_version_queued_prs() was only prefix-matching for
hfrev==-1 (legacy sentinel), missing the case where branch_factory()
creates a HotfixBranch with hfrev==0 but update_versions() already
advanced the queue to hfrev==1 (post-GA). Extend the fallback prefix
match to cover hfrev==0 as well, with an exact-match-first strategy
to preserve correct pre-GA behaviour.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fe9a238 commit b438129
2 files changed
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | | - | |
85 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
833 | | - | |
834 | | - | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
835 | 843 | | |
836 | 844 | | |
837 | | - | |
838 | 845 | | |
839 | 846 | | |
840 | 847 | | |
| |||
0 commit comments