![](/img/trans.png)
[英]The revision of a specific branch(within another branch) within SVN - Using SVNKit
[英]Find revision in trunk that a branch was created from using SVNKIT
我找到了解决方案
此代码片段已发布在此站点上 。 此代码返回创建分支的修订版本。
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]);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.