[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-dev] ISVNClientAdapter limitations (getCopy, doExport)

From: Cain, Tom <tcain_at_solekai.com>
Date: 2006-11-29 19:22:33 CET

Hello,
I've found a couple of limitations to the ISVNClientAdapter interface,
and wanted to get feedback on these to see if they are indeed
limitations, if they are known, and if fixes are in the near future.

First, neither of the ISVNInfo.getCopyUrl() and ISVNInfo.getCopyRev()
methods seem to work. The first always returns null, and the second
always returns 0. I'm assuming the following code should work:

        SVNUrl srcUrl = ...
        SVNUrl destUrl = ...
        SVNRevision srcRevision = ...

        adapter.copy(srcUrl, destUrl, "...", srcRevision);
        
        ISVNInfo destInfo = adapter.getInfo(destUrl);
        SVNUrl expectedSrcUrl = destInfo.getCopyUrl();
        boolean copied = expectedSrcUrl.equals(srcUrl); // this should
return true

Instead, this throws a NullPointerException because "expectedSrcUrl" is
null.

Second, the ISVNClientAdapter.doExport(...) does not support a
non-recursive export. The JavaSVN API supports this, is there a reason
ISVNClientAdapter doesn't?

Thanks,
Tom
Received on Wed Nov 29 19:22:19 2006

This is an archived mail posted to the Subclipse Dev mailing list.