SVNkit kullanarak iki svn url üzerinde bir diff çalıştırmak çalışıyorum. Sorun, diff.doDiff
çağrıldığında hata alıyorum.SVNkit SVNRepoitory oluşturulamıyor
org.tmatesoft.svn.core.SVNException: svn: org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error (SVNErrorManager de 'http://svn.codehaus.org/jruby/trunk/jruby/src/org/jruby/Finalizable.java' için SVNRepository nesne oluşturulamadı. java: 55) org.tmatesoft.svn.core.io.SVNRepositoryFactory.create de org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error (SVNErrorManager.java:40) (SVNRepositoryFactory.java için: 199) veya org.tmatesoft.svn.core.wc.DefaultSVNRepositoryPool.createRepository (DefaultSVNRepositoryPool.java:213) de org.tmatesoft.svn.core.wc.SVNClientManager.createRepository org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository (SVNBasicClient.java:231) 'den (SVNClientManager.java:242) deorg .tmatesoft.svn.core.wc.SVNDiffClient.doDiffURLURL SVNTest.main de org.tmatesoft.svn.core.wc.SVNDiffClient.doDiff (SVNDiffClient.java:310) de (SVNDiffClient.java:769) (SVNTest. java: 30)
URL'leri iki kez kontrol ettim (bunları TortoiseSVN istemcisinde açabilirim). Neler olup bittiğini bana kimse yardım edebilir mi? Aşağıda koştuğum kodu yayınladım.
SVNClientManager manager = SVNClientManager.newInstance(SVNWCUtil.createDefaultOptions(false), user, pass);
SVNDiffClient diff = manager.getDiffClient();
//ISVNDiffStatusHandler diffStatus = new ISVNDiffStatusHandler();
try {
SVNURL oldURL = SVNURL.parseURIDecoded(url);
diff.doDiff(SVNURL.parseURIDecoded(url), SVNRevision.create(oldVersion), SVNURL.parseURIDecoded(url), SVNRevision.HEAD, false, false, System.out);
} catch (SVNException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}