use of com.intellij.vcs.log.TimedVcsCommit in project intellij-community by JetBrains.
the class MqPatchTest method testMqPatchInfoAfterQImport.
public void testMqPatchInfoAfterQImport() throws Exception {
cd(myRepository);
HgQImportCommand importCommand = new HgQImportCommand(myHgRepository);
importCommand.executeInCurrentThread("tip");
MqPatchDetails patchDetails = updateAndGetDetails();
TimedVcsCommit tipCommitDetailsFromLog = getLastRevisionDetails();
assertEqualsCommitInfo(tipCommitDetailsFromLog, patchDetails);
}
use of com.intellij.vcs.log.TimedVcsCommit 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());
}
Aggregations