code: public static InputStream getRemoteFileContent(String file, long revision, String baseUrl, String user, String pwd) throws IOException {
          // svn cat -r 666 file
          CommandLine cmdLine = new CommandLine(SVN_CMD);
          cmdLine.addArgument(CMD_CAT);
          addDefaultArguments(cmdLine, user, pwd);
          cmdLine.addArgument("-r");
          cmdLine.addArgument(Long.toString(revision));
          cmdLine.addArgument(baseUrl + file);
  
          return ExecutionHelper.getCommandResult(cmdLine, new File("."), 0, 120000);
      }
docs: Retrieve the contents of a file from the web-interface of the SVN server.
  
  @param file The file to fetch from the SVN server via
  @param revision      The SVN revision to use
  @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 An InputStream which provides the content of the revision of the specified file
  
  @throws IOException Execution of the SVN sub-process failed or the
  sub-process returned a exit value indicating a failure