Search in sources :

Example 1 with TimedVcsCommit

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);
}
Also used : TimedVcsCommit(com.intellij.vcs.log.TimedVcsCommit) HgQImportCommand(org.zmlx.hg4idea.command.mq.HgQImportCommand) MqPatchDetails(org.zmlx.hg4idea.mq.MqPatchDetails)

Example 2 with TimedVcsCommit

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());
}
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)2 VcsLogFilterCollectionImpl (com.intellij.vcs.log.impl.VcsLogFilterCollectionImpl)1 NotNull (org.jetbrains.annotations.NotNull)1 HgQImportCommand (org.zmlx.hg4idea.command.mq.HgQImportCommand)1 MqPatchDetails (org.zmlx.hg4idea.mq.MqPatchDetails)1