Wednesday, February 8, 2012

SVNKit: get local working file revision number

  public final static String getSvnVersionNumber(File file) throws SVNException {
    SVNClientManager clientManager = SVNClientManager.newInstance();
    return String.valueOf(clientManager.getStatusClient().doStatus(file, false).getRevision().getNumber());
  }

1 comment: