HgCommandResult (@NotNull final String name) { Project project = myRepository.getProject(); HgCommandResult result = new HgCommandExecutor(project) .executeInCurrentThread(myRepository.getRoot(), "qgoto", Collections.singletonList(name)); if (HgErrorUtil.hasErrorsInCommandExecution(result)) { new HgCommandResultNotifier(project) .notifyError(QGOTO_ERROR, result, HgBundle.message("action.hg4idea.QGotoFromPatches.error"), HgBundle.message("action.hg4idea.QGotoFromPatches.error.msg", name)); } myRepository.update(); return result; }