use of org.jetbrains.idea.svn.history.SvnCommittedChangesProvider in project intellij-community by JetBrains.
the class MergeCalculatorTask method getChangeLists.
@NotNull
private static <T> List<T> getChangeLists(@NotNull MergeContext mergeContext, @NotNull ChangeBrowserSettings settings, long revisionToExclude, int size, @NotNull PairFunction<SvnChangeList, LogHierarchyNode, T> resultProvider) throws VcsException {
List<T> result = newArrayList();
((SvnCommittedChangesProvider) mergeContext.getVcs().getCommittedChangesProvider()).getCommittedChangesWithMergedRevisons(settings, new SvnRepositoryLocation(mergeContext.getSourceUrl()), size > 0 ? size + (revisionToExclude > 0 ? 2 : 1) : 0, (changeList, tree) -> {
if (revisionToExclude != changeList.getNumber()) {
result.add(resultProvider.fun(changeList, tree));
}
});
return result;
}
Aggregations