This commit stages the branch to the next 1.0.1 patch release. BWC testing needs this even if the next revision is never actually released. Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
This commit is contained in:
parent
ec05dcdcf0
commit
079fd77062
|
@ -75,3 +75,4 @@ BWC_VERSION:
|
|||
- "7.10.1"
|
||||
- "7.10.2"
|
||||
- "1.0.0"
|
||||
- "1.0.1"
|
||||
|
|
|
@ -71,6 +71,7 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|||
public static final Version V_EMPTY = new Version(V_EMPTY_ID, org.apache.lucene.util.Version.LATEST);
|
||||
|
||||
public static final Version V_1_0_0 = new Version(1000099, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
||||
public static final Version V_1_0_1 = new Version(1000199, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
||||
public static final Version V_1_1_0 = new Version(1010099, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
||||
public static final Version CURRENT = V_1_1_0;
|
||||
|
||||
|
|
|
@ -95,15 +95,20 @@ public class VersionUtils {
|
|||
// remove last minor unless the it's the first OpenSearch version.
|
||||
// all Legacy ES versions are released, so we don't exclude any.
|
||||
if (current.equals(Version.V_1_0_0) == false) {
|
||||
Version lastMinor = moveLastToUnreleased(stableVersions, unreleasedVersions);
|
||||
if (lastMinor.revision == 0) {
|
||||
if (stableVersions.get(stableVersions.size() - 1).size() == 1) {
|
||||
// a minor is being staged, which is also unreleased
|
||||
moveLastToUnreleased(stableVersions, unreleasedVersions);
|
||||
}
|
||||
// remove the next bugfix
|
||||
if (stableVersions.isEmpty() == false) {
|
||||
moveLastToUnreleased(stableVersions, unreleasedVersions);
|
||||
List<Version> lastMinorLine = stableVersions.get(stableVersions.size() - 1);
|
||||
if (lastMinorLine.get(lastMinorLine.size() - 1) instanceof LegacyESVersion == false) {
|
||||
// if the last minor line is Legacy there are no more staged releases; do nothing
|
||||
Version lastMinor = moveLastToUnreleased(stableVersions, unreleasedVersions);
|
||||
if (lastMinor instanceof LegacyESVersion == false && lastMinor.revision == 0) {
|
||||
// no more staged legacy versions
|
||||
if (stableVersions.get(stableVersions.size() - 1).size() == 1) {
|
||||
// a minor is being staged, which is also unreleased
|
||||
moveLastToUnreleased(stableVersions, unreleasedVersions);
|
||||
}
|
||||
// remove the next bugfix
|
||||
if (stableVersions.isEmpty() == false) {
|
||||
moveLastToUnreleased(stableVersions, unreleasedVersions);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue