Search in sources :

Example 1 with VcsLogFilterCollectionImpl

use of com.intellij.vcs.log.impl.VcsLogFilterCollectionImpl in project intellij-community by JetBrains.

the class HgTextFilterTest method getFilteredCommits.

@NotNull
private List<String> getFilteredCommits(@NotNull HgLogProvider provider, @NotNull VcsLogTextFilterImpl filter) throws VcsException {
    VcsLogFilterCollectionImpl filterCollection = new VcsLogFilterCollectionImpl(null, null, null, null, filter, null, null);
    List<TimedVcsCommit> commits = provider.getCommitsMatchingFilter(myProject.getBaseDir(), filterCollection, -1);
    return ContainerUtil.map(commits, commit -> commit.getId().asString());
}
Also used : VcsLogFilterCollectionImpl(com.intellij.vcs.log.impl.VcsLogFilterCollectionImpl) TimedVcsCommit(com.intellij.vcs.log.TimedVcsCommit) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

TimedVcsCommit (com.intellij.vcs.log.TimedVcsCommit)1 VcsLogFilterCollectionImpl (com.intellij.vcs.log.impl.VcsLogFilterCollectionImpl)1 NotNull (org.jetbrains.annotations.NotNull)1