Hi Daniel, try the following code
final SvnOperationFactory svnOperationFactory = new SvnOperationFactory(); try { final SVNURL url1 = SVNURL.parseURIEncoded("svn://localhost/kaniniproject/trunk/implementacao/Codigo.java"); final SVNURL url2 = SVNURL.parseURIEncoded("svn://localhost/kaniniproject/branch/bug01/implementacao/Codigo.java"); final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); final SvnDiffGenerator diffGenerator = new SvnDiffGenerator(); diffGenerator.setBasePath(new File("")); final SvnDiff diff = svnOperationFactory.createDiff(); diff.setSources(SvnTarget.fromURL(url1, SVNRevision.create(6)), SvnTarget.fromURL(url2, SVNRevision.create(9))); diff.setDiffGenerator(diffGenerator); diff.setOutput(byteArrayOutputStream); diff.run(); final String actualDiffOutput = byteArrayOutputStream.toString(); } finally { svnOperationFactory.dispose(); } -- Dmitry Pavlenko, TMate Software, http://subgit.com/ - git-svn bridge > Hi Everybody, > > Do you know the equivalent method of SVNKit API to the following command in > the svn? > > *svn diff > svn://localhost/kaniniproject/trunk/implementacao/Codigo.java@6svn://local > host/kaniniproject/branch/bug01/implementacao/Codigo.java@9 * > > I mean, i want to diff two archives in different paths from my svn and > those archives could already have been deleted (or not), so i use the > pegRevision of each one. > > Thank you