我正在尝试使用 Java 1.7 和 SVNkit 1.7.4v1 导出在线 SVN 存储库的特定版本。但问题是,如果特定版本不是 HEAD,SVNkit 会忽略外部。使用 HEAD-revison,导出工作正常,并且包括外部。
我用UpdateClient.doExport()
as well as UpdateClient.doCheckout()
,两者都有同样的问题。
我的示例代码:
setupSVNKit();
SVNClientManager cm = SVNClientManager.newInstance();
SVNURL url = SVNURL.parseURIEncoded("https://xxxxxxxx");
File dstPath = new File("d:/svntest");
SVNUpdateClient uc = cm.getUpdateClient();
uc.setIgnoreExternals(false);
/*
uc.doExport(url, dstPath,
SVNRevision.HEAD, SVNRevision.create(11768),
null, true, SVNDepth.INFINITY);
*/
uc.doCheckout(url, dstPath, SVNRevision.UNDEFINED,
SVNRevision.create(11768), SVNDepth.INFINITY, true);
有谁知道如何解决这个问题?因为我需要外部设备。