void () { cd(myRepository); HgQImportCommand importCommand = new HgQImportCommand(myHgRepository); importCommand.executeInCurrentThread("tip"); MqPatchDetails patchDetails = updateAndGetDetails(); TimedVcsCommit tipCommitDetailsFromLog = getLastRevisionDetails(); assertEqualsCommitInfo(tipCommitDetailsFromLog, patchDetails); }