if (conflictingCommitsExist(assumedHeadRevision)) {
String message = String.format("Commit @%s: failed due to a conflicting commit."
+ " Affected paths: %s", revisionId, commit.getAffectedPaths());
logger.warn(message);
markAsFailed();
throw new ConflictingCommitException(message);
} else {
logger.info("Commit @{}: failed due to a concurrent commit."
+ " Affected paths: {}", revisionId, commit.getAffectedPaths());
markAsFailed();
return false;