code: public static boolean verifyNoPendingChanges(File directory) throws IOException {
          log.info("Checking that there are no pending changes on trunk-working copy");
          try (InputStream inStr = getPendingCheckins(directory)) {
              List<String> lines = IOUtils.readLines(inStr, "UTF-8");
              if (lines.size() > 0) {
                  log.info("Found the following checkouts:\n" + ArrayUtils.toString(lines.toArray(), "\n"));
                  return true;
              }
          }
  
          return false;
      }
docs: Check if there are pending changes on the branch, returns true if changes are found.
  
  @param directory The local working directory
  @return True if there are pending changes, false otherwise
  @throws IOException Execution of the SVN sub-process failed or the
  sub-process returned a exit value indicating a failure