Fix the branch determination for stored code when building the docs.

Review Request #12472 — Created July 14, 2022 and submitted

Information

Review Board
release-5.0.x

Reviewers

When building docs, we compute the release branch for the product, based
on the version. The code we had for this was using indexes into
reviewboard.VERSION, and had a wrong index used in one spot.

This was hit when building beta docs, as it's a code path we don't usually
hit during doc building.

This change bullet-proofs this logic by pulling out all the variants
from VERSION up-front and then uses those for the logic, instead of
index lookups.

Successfully built the docs.

Summary ID
Fix the branch determination for stored code when building the docs.
When building docs, we compute the release branch for the product, based on the version. The code we had for this was using indexes into `reviewboard.VERSION`, and had a wrong index used in one spot. This change bullet-proofs this logic by pulling out all the variants from `VERSION` up-front and then uses those for the logic, instead of index lookups.
216c02a493729abe7830ee5f742fc7653ca0dc3c
maubin
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.0.x (02ada29)