Package com.google.gerrit.entities
Class BranchOrderSection
- java.lang.Object
-
- com.google.gerrit.entities.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 Summary
Constructors Constructor Description BranchOrderSection()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
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
-
create
public static BranchOrderSection create(Collection<String> order)
-
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).
-
-