简体   繁体   English

为什么在更新到特定版本时Svnkit会忽略外部?

[英]Why does Svnkit ignore externals when updating to a specific revision?

I'm trying to export a specific revsion of an online SVN Repository using Java 1.7 and SVNkit 1.7.4v1. 我正在尝试使用Java 1.7和SVNkit 1.7.4v1导出在线SVN存储库的特定版本。 But the problem is that SVNkit ignores the externals if the specific revision is not HEAD. 但是问题在于,如果特定版本不是HEAD,则SVNkit会忽略外部。 With the HEAD-revison, the export works fine and externals are included. 使用HEAD-revison,可以很好地进行导出,并且包括外部组件。

I used UpdateClient.doExport() as well as UpdateClient.doCheckout() and both are having the same problem. 我使用了UpdateClient.doExport()以及UpdateClient.doCheckout() ,两者都存在相同的问题。

My sample code: 我的示例代码:

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);

Does anyone have an idea how to solve this problem? 有谁知道如何解决这个问题? Because I need the externals. 因为我需要外部设备。

Please, file an issue at http://issues.tmatesoft.com/issues/SVNKIT . 请在http://issues.tmatesoft.com/issues/SVNKIT上提交问题。 I can't reproduce the problem, but if externals are ignored depending on a revision, it is definitely a bug. 我无法重现该问题,但是如果根据修订版本忽略了外部因素,则肯定是一个错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM