Package com.google.gerrit.entities
Class BranchOrderSection
java.lang.Object
com.google.gerrit.entities.BranchOrderSection
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BranchOrderSection
create
(Collection<String> order) 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.abstract com.google.common.collect.ImmutableList<String>
order()
Branch names ordered from least to the most stable.
-
Constructor Details
-
BranchOrderSection
public BranchOrderSection()
-
-
Method Details
-
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
-
create
-
getMoreStable
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).
-