Search in sources :

Example 1 with MqPatchDetails

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

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

the class MqPatchTest method testMqPatchInfoAfterQNew.

public void testMqPatchInfoAfterQNew() throws Exception {
    cd(myRepository);
    append(FILENAME, "modify");
    myRepository.refresh(false, true);
    new HgQNewCommand(myProject, myHgRepository, MESSAGE, false).executeInCurrentThread();
    myRepository.refresh(false, true);
    MqPatchDetails patchDetails = updateAndGetDetails();
    assertEqualsCommitInfo(null, patchDetails);
}
Also used : HgQNewCommand(org.zmlx.hg4idea.command.mq.HgQNewCommand) MqPatchDetails(org.zmlx.hg4idea.mq.MqPatchDetails)

Aggregations

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