SVNKit: How to get the revision number from a working directory -


i implement method can svn revision number path svn repository has been checked out. method declaration this:

long getrevisionnumber(string localpath) { ... } 

i'm trying use svnkit this, seems require svn url start with. there way start local path?

public static long getrevisionnumber(string localpath) throws svnexception {     final svnstatus status = svnclientmanager.newinstance().getstatusclient().dostatus(new file(localpath), false);     return status != null ? status.getrevision().getnumber() : -1; } 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -