答案 0 :(得分:0)
我找到了解决方案
此代码片段在此site上发布。此代码返回从中创建分支的修订版。
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]);