use of com.thoughtworks.go.server.web.PipelineRevisionRange in project gocd by gocd.
the class ChangesetService method revisionsBetween.
public List<MaterialRevision> revisionsBetween(List<PipelineRevisionRange> pipelineRevisionRanges, Username username, HttpLocalizedOperationResult result) {
ArrayList<MaterialRevision> revisions = new ArrayList<>();
for (PipelineRevisionRange pipelineRevisionRange : pipelineRevisionRanges) {
DependencyMaterialRevision fromDmr = DependencyMaterialRevision.create(pipelineRevisionRange.getFromRevision(), null);
DependencyMaterialRevision toDmr = DependencyMaterialRevision.create(pipelineRevisionRange.getToRevision(), null);
revisions.addAll(revisionsBetween(pipelineRevisionRange.getPipelineName(), fromDmr.getPipelineCounter(), toDmr.getPipelineCounter(), username, result, true, false));
}
return deduplicateMaterialRevisionsForCommonMaterials(revisions);
}
Aggregations