You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: reckon-core/src/main/java/org/ajoberstar/reckon/core/Reckoner.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ public Version reckon() {
64
64
thrownewIllegalStateException("Reckoned version " + reckoned + " has already been released.");
65
65
}
66
66
67
-
if (inventory.getClaimedVersions().contains(reckoned.getNormal()) && !inventory.getCurrentVersion().filter(reckoned.getNormal()::equals).isPresent() && reckoned.isSignificant()) {
67
+
if (inventory.getClaimedVersions().contains(reckoned.getNormal()) && inventory.getCurrentVersion().filter(reckoned.getNormal()::equals).isEmpty() && reckoned.isSignificant()) {
68
68
thrownewIllegalStateException("Reckoned target normal version " + reckoned.getNormal() + " has already been released.");
69
69
}
70
70
@@ -94,7 +94,7 @@ private Version reckonNormal(VcsInventory inventory) {
94
94
// if a version's already being developed on a parallel branch we'll skip it
95
95
if (inventory.getParallelNormals().contains(targetNormal) && probableStage.isPresent()) {
96
96
if (scope.compareTo(parallelBranchScope) < 0) {
97
-
logger.debug("Skipping {} as it's being developed on a parallel branch. While {} was requested, parallel branches claim a {}, using that instead.", scope, parallelBranchScope);
97
+
logger.debug("Skipping {} as it's being developed on a parallel branch. While {} was requested, parallel branches claim a {}, using that instead.", targetNormal, scope, parallelBranchScope);
0 commit comments