void (@NotNull final String startRevisionNumber) { final Project project = myRepository.getProject(); String lastRevisionName = myRepository.getMQAppliedPatches().isEmpty() ? "tip" : "qparent"; List<String> arguments = List.of("--rev", startRevisionNumber + ":" + lastRevisionName); HgCommandResult result = new HgCommandExecutor(project).executeInCurrentThread(myRepository.getRoot(), "qimport", arguments); if (HgErrorUtil.hasErrorsInCommandExecution(result)) { new HgCommandResultNotifier(project) .notifyError(QIMPORT_ERROR, result, HgBundle.message("action.hg4idea.QImport.error"), HgBundle.message("action.hg4idea.QImport.error.msg", startRevisionNumber)); } myRepository.update(); }