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

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

chipx86
Review Board
release-5.0.x
reviewboard

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.

Commits

Files

Loading...