public static boolean hasErrorsInCommandExecution(@Nullable HgCommandResult result) {
    return isAbort(result) || result.getExitValue() != 0;
  }
public static boolean hasErrorsInCommandExecution(@Nullable HgCommandResult result)