Skip to content

Commit

Permalink
Merge pull request #183 from ajoberstar/parallel
Browse files Browse the repository at this point in the history
Only use parallel version avoidance for significants
  • Loading branch information
ajoberstar committed Aug 19, 2022
2 parents 0c85609 + eba7a4c commit 08be355
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ private Version reckonNormal(VcsInventory inventory) {
}

var targetNormal = inventory.getBaseNormal().incrementNormal(scope);
var probableStage = stageCalc.calculate(inventory, targetNormal);

// if a version's already being developed on a parallel branch we'll skip it
if (inventory.getParallelNormals().contains(targetNormal)) {
if (inventory.getParallelNormals().contains(targetNormal) && probableStage.isPresent()) {
if (scope.compareTo(parallelBranchScope) < 0) {
logger.debug("Skipping {} as it's being developed on a parallel branch. While {} was requested, parallel branches claim a {}, using that instead.", scope, parallelBranchScope);
targetNormal = targetNormal.incrementNormal(parallelBranchScope);
Expand Down

0 comments on commit 08be355

Please sign in to comment.