addedFiles.removeAll(incrementBySameOwner);
Author ownerAuthor = authorManager.getAuthor(owner);
if (ownerAuthor == null) {
ownerAuthor = authorManager.createAuthor(owner);
authorManager.storeAuthor(ownerAuthor);
authorManager.commit();
}
if (revision > 1) {
repository.getArtifact(new ArtifactIdentifier(printPath, revision - 1, "")).setObsoleteDate(newRevisionDate);
}
repository.addArtifact(new ArtifactIdentifier(printPath, revision, ""),