code: public static long getLastRevision(String branch, String baseUrl, String user, String pwd) throws IOException {
          CommandLine cmdLine = new CommandLine(SVN_CMD);
          cmdLine.addArgument("info");
          addDefaultArguments(cmdLine, user, pwd);
          cmdLine.addArgument(baseUrl + branch);
  
          try (InputStream inStr = ExecutionHelper.getCommandResult(cmdLine, new File("."), 0, 120000)) {
              String info = IOUtils.toString(inStr, "UTF-8");
              log.info("Info:\n" + info);
  
  			/* svn info http://...
  
  			 	Repository Root: https://svn-lnz.emea.cpwr.corp/svn/dev
  				Repository UUID: 35fb04cf-4f84-b44d-92fa-8d0d0442729e
  				Revision: 390864
  				Node Kind: directory
  			*/
  
              // read the revision
              Matcher matcher = Pattern.compile("Revision: ([0-9]+)").matcher(info);
              if (!matcher.find()) {
                  throw new IOException("Could not find Revision entry in info-output: " + info);
              }
  
              log.info("Found rev: " + matcher.group(1) + " for branch " + branch);
              return Long.parseLong(matcher.group(1));
          }
      }
docs: Return the last revision of the given branch. Uses the full svn repository if branch is ""
  
  @param branch The name of the branch including the path to the branch, e.g. branches/4.2.x
  @param baseUrl       The SVN url to connect to
  @param user The SVN user or null if the default user from the machine should be used
  @param pwd  The SVN password or null if the default user from the machine should be used   @return The contents of the file.
  @return The last revision where a check-in was made on the branch
  @throws IOException Execution of the SVN sub-process failed or the
  sub-process returned a exit value indicating a failure