![](/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.