public static boolean isCommandExecutionFailed(@Nullable HgCommandResult result) {
    return isAbort(result) || result.getExitValue() > 1;
  }
public static boolean isCommandExecutionFailed(@Nullable HgCommandResult result)