gpt4 book ai didi

java - SVN 错误 : svn: E200007: Runner for 'org.tmatesoft.svn.core.wc2.SvnMerge'

转载 作者:搜寻专家 更新时间:2023-11-01 01:20:54 26 4
gpt4 key购买 nike

我正在尝试使用 SVNKIT java API 将分支合并到主干。

它的代码如下:

String branchURL = "<Branch URL>";

SVNURL branchSVNURL = SVNURL.parseURIDecoded(branchURL);//SVN Branch URL

String WC_PATH= "<Some Path>";//This is the Working copy path which has the Trunk checked out

File svnWorkingCopy = new File(WC_PATH);

SVNDiffClient svnDiffClient;//This is initialized using SVNClientManager

try{
//doMerge(java.io.File path1, SVNRevision revision1, SVNURL url2, SVNRevision revision2, java.io.File dstPath, SVNDepth depth, boolean useAncestry, boolean force, boolean dryRun, boolean recordOnly)
svnDiffClient.doMerge(branchSVNURL, SVNRevision.HEAD,null,svnWorkingCopy,SVNDepth.INFINITY,false, false, false, false);
}catch(Exception e){
e.printStackTrace();
}

运行这段代码会抛出以下错误:

org.tmatesoft.svn.core.SVNException: svn: E200007: Runner for 'org.tmatesoft.svn.core.wc2.SvnMerge' command have not been found; probably not yet implement in this API.
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
at org.tmatesoft.svn.core.wc2.SvnOperationFactory.getImplementation(SvnOperationFactory.java:1375)
at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1224)
at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
at org.tmatesoft.svn.core.wc.SVNDiffClient.doMerge(SVNDiffClient.java:2389)
at com.test.TestSVN.merge(TestSVN.java:109)
at com.test.TestSVN.main(TestSVN.java:45)

我用 SVNKIT 版本 1.7.111.8.10 运行这段代码,得到了同样的错误。

上述代码的 SVN 命令行等价物是

svn merge <branchurl> <WC_PATH>

让我们知道是否需要做任何事情来解决这个问题。

最佳答案

首先,检查您是否安装了 subclipse,@flm 发布在哪里。在您的 Eclipse 中,转到 Windows -> Preference -> Team -> SVN -> DIFF/Merge

选择默认(Sublclipse)

enter image description here

关于java - SVN 错误 : svn: E200007: Runner for 'org.tmatesoft.svn.core.wc2.SvnMerge' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33402805/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com