I want to get the latest revision number of the SVN database using SVNKIT. I don\'t want to update the local repository and get the head revision number , i want to directly
FSRepositoryFactory.setup();
File pathToRepository = new File("/path/to/repository");
SVNRepository svnRepository = SVNRepositoryFactory.create(SVNURL.fromFile(pathToRepository));
try {
final long latestRevision = svnRepository.getLatestRevision();
System.out.println("latestRevision = " + latestRevision);
} finally {
svnRepository.closeSession();
}