Class BranchOrderSection


  • public abstract class BranchOrderSection
    extends Object
    An ordering of branches by stability.

    The REST API supports automatically checking if changes on development branches can be merged into stable branches. This is configured by the branchOrder.branch project setting. This class represents the ordered list of branches, by increasing stability.

    • Constructor Detail

      • BranchOrderSection

        public BranchOrderSection()
    • Method Detail

      • order

        public abstract com.google.common.collect.ImmutableList<String> order()
        Branch names ordered from least to the most stable.

        Typically the order will be like: master, stable-M.N, stable-M.N-1, ...

        Ref names in this list are exactly as they appear in project.config

      • getMoreStable

        public com.google.common.collect.ImmutableList<String> getMoreStable​(String branch)
        Returns the tail list of branches that are more stable - so lower in the entire list ordered by priority compared to the provided branch. Always returns a fully qualified ref name (including the refs/heads/ prefix).