Search in sources :

Example 1 with HgQImportCommand

use of org.zmlx.hg4idea.command.mq.HgQImportCommand 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 HgQImportCommand

use of org.zmlx.hg4idea.command.mq.HgQImportCommand in project intellij-community by JetBrains.

the class HgQImportFromLogAction method actionPerformed.

@Override
protected void actionPerformed(@NotNull HgRepository repository, @NotNull Hash commit) {
    String revisionHash = commit.asString();
    new HgQImportCommand(repository).execute(revisionHash);
}
Also used : HgQImportCommand(org.zmlx.hg4idea.command.mq.HgQImportCommand)

Aggregations

HgQImportCommand (org.zmlx.hg4idea.command.mq.HgQImportCommand)2 TimedVcsCommit (com.intellij.vcs.log.TimedVcsCommit)1 MqPatchDetails (org.zmlx.hg4idea.mq.MqPatchDetails)1