Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN Error: svn: E200007: Runner for 'org.tmatesoft.svn.core.wc2.SvnMerge'

Tags:

java

svn

svnkit

I am trying to merge branch to trunk using SVNKIT java API.

The code for it is as follows:

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

Running this code throws the following error:

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)

I ran this piece of code with SVNKIT version 1.7.11 and 1.8.10 and got the same error.

SVN command line equivalent for the code mentioned above is

svn merge <branchurl> <WC_PATH>

Let know if anything needs to be done to fix this issue.

like image 477
Vinod Avatar asked Dec 09 '22 01:12

Vinod


1 Answers

First, check you have subclipse installed, @flm post where. In your Eclipse, go Windows -> Preference -> Team -> SVN -> DIFF/Merge

Select default (Sublclipse)

enter image description here

like image 184
A Monad is a Monoid Avatar answered Feb 23 '23 01:02

A Monad is a Monoid