HgCommandResult () { final Project project = myRepository.getProject(); HgCommandResult result = new HgCommandExecutor(project) .executeInCurrentThread(myRepository.getRoot(), "qpop", Collections.singletonList("--all")); if (HgErrorUtil.hasErrorsInCommandExecution(result)) { new HgCommandResultNotifier(project) .notifyError(QPOP_ERROR, result, HgBundle.message("action.hg4idea.QPop.error"), HgBundle.message("action.hg4idea.QPop.error.msg")); } else { assert result != null; if (!result.getErrorLines().isEmpty()) { VcsNotifier.getInstance(project).notifyWarning(QPOP_COMPLETED_WITH_ERRORS, HgBundle.message("action.hg4idea.QPop.error.warning"), result.getRawError()); } } myRepository.update(); return result; }