2017-07-21 3 views

Répondre

0

I trouvé la solution

Ce fragment de code est l'affichage sur ce site. Ce code renvoie la révision à partir de laquelle une branche a été créée.

final long[] revStart = { -1 }; 

logClient.doLog(SVNURL.parseURIEncoded(
"https://svn.svnkit.com/repos/svnkit/branches/1.2.x"), 
null, SVNRevision.HEAD, SVNRevision.HEAD, SVNRevision.create(1), true, 
false, false, 0, null, new ISVNLogEntryHandler() { 
public void handleLogEntry(SVNLogEntry logEntry) throws 
    SVNException { 
     System.out.println(logEntry); 
     revStart[0] = logEntry.getRevision(); 
    } 
}); 

System.out.println(revStart[0]);