Hello, SVNDiffClient#doDiff should work, but prefer using new SVNKit API (SvnOperationFactory-based), see
http://svn.svnkit.com/repos/svnkit/trunk/svnkit/src/test/java/org/tmatesoft/svn/test/DiffTest.java for example. I have little experience with Clojue, but this line looks wrong: (new java.io.File "http://svn.svnkit.com/repos/svnkit/trunk/README.txt") Maybe this misuse caused the problem. Use SVNURL object for URLs or File for files in working copy, but not File for SVN URLs. -- Dmitry Pavlenko, TMate Software, http://subgit.com/ - git-svn bridge > Hello all, > > I'm attempting to follow this tutorial > <http://wiki.svnkit.com/Diffing%20a%20working%20copy%20against%20a%20reposi > tory> but in Clojure and I'm getting this error: > > SVNException svn: E200007: Runner for 'org.tmatesoft.svn.core.wc2.SvnDiff' > command have not been found; probably not yet implement in this API. > org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error > (SVNErrorManager.java:64) > > It's correct that I don't have org.tmatesoft.svn.core.wc2.SvnDiff - but it > doesn't seem to me like that class is supposed to exist, so I don't know > what's going wrong. This is my code: > > (ns firstproj.core > (:import (org.tmatesoft.svn.core.internal.io.dav DAVRepositoryFactory) > (org.tmatesoft.svn.core.io SVNRepositoryFactory) > (org.tmatesoft.svn.core SVNURL SVNException SVNDepth) > (org.tmatesoft.svn.core.internal.io.svn > SVNRepositoryFactoryImpl) (org.tmatesoft.svn.core.auth > ISVNAuthenticationManager) (org.tmatesoft.svn.core.wc SVNWCUtil > SVNClientManager > SVNDiffClient SVNRevision) > (org.tmatesoft.svn.core SVNProperties) > (java.util Collection)) > (:use clojure.reflect > clojure.java.io) > ) > > (defn attemptDiff [] > (let [diffClient (.. SVNClientManager newInstance getDiffClient) > file (new java.io.File > "http://svn.svnkit.com/repos/svnkit/trunk/README.txt") > ] > (with-open [outStream (output-stream "/home/user/diff.txt")] > (. diffClient doDiff file (. SVNRevision UNDEFINED) (. SVNRevision > WORKING) > (. SVNRevision HEAD) (. SVNDepth INFINITY) true outStream nil) > ) > ) > ) > > I've tried using both a local version of the file as well as the remote one > since one web page seemed to indicate this could be the problem. Does > anyone know what the problem could be? > > Thanks in advance, > -Ben > > > > -- > View this message in context: > http://subversion.1072662.n5.nabble.com/Command-have-not-been-found-error- > tp181236.html Sent from the SVNKit - Users mailing list archive at > Nabble.com.