use Diff with ISVNReporterBaton

View: New views
3 Messages — Rating Filter:   Alert me  

use Diff with ISVNReporterBaton

by Jean-Claude Antonio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am trying to use the SVNRepository.diff method with the
ISVNReporterBaton interface.
I tried,

        SVNURL url1 =
SVNURL.parseURIDecoded("http://localhost/svn/repo/EComProject/work/.voila/wiki/main.html");
       
        ISVNReporterBaton baton = new ISVNReporterBaton(){
            public void report(ISVNReporter reporter) throws SVNException {
                //System.out.println(reporter.toString());
            }};
        repo.diff(url1, 2635,2637, null, true, false, true, baton, null);

and I get the error

Exception in thread "main" org.tmatesoft.svn.core.SVNException: svn:
Invalid report for top level of working copy
svn: REPORT of '/svn/repo/!svn/vcc/default': 500 Internal Server Error
(http://localhost)
    at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
    at
org.tmatesoft.svn.core.internal.io.dav.DAVRepository.diff(DAVRepository.java:668)
    at
com.alineo.svn.core.DiffClientTest.testDiffFiles(DiffClientTest.java:63)
    at com.alineo.svn.core.DiffClientTest.main(DiffClientTest.java:83)

Cheers


---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: use Diff with ISVNReporterBaton

by Jean-Claude Antonio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nevermind I will go for the SVNDiffClient class instead.
Cheers

Jean-Claude Antonio a écrit :

> Hello,
>
> I am trying to use the SVNRepository.diff method with the
> ISVNReporterBaton interface.
> I tried,
>
>        SVNURL url1 =
> SVNURL.parseURIDecoded("http://localhost/svn/repo/EComProject/work/.voila/wiki/main.html");
>
>              ISVNReporterBaton baton = new ISVNReporterBaton(){
>            public void report(ISVNReporter reporter) throws
> SVNException {
>                //System.out.println(reporter.toString());
>            }};
>        repo.diff(url1, 2635,2637, null, true, false, true, baton, null);
>
> and I get the error
>
> Exception in thread "main" org.tmatesoft.svn.core.SVNException: svn:
> Invalid report for top level of working copy
> svn: REPORT of '/svn/repo/!svn/vcc/default': 500 Internal Server Error
> (http://localhost)
>    at
> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
>
>    at
> org.tmatesoft.svn.core.internal.io.dav.DAVRepository.diff(DAVRepository.java:668)
>
>    at
> com.alineo.svn.core.DiffClientTest.testDiffFiles(DiffClientTest.java:63)
>    at com.alineo.svn.core.DiffClientTest.main(DiffClientTest.java:83)
>
> Cheers
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
> For additional commands, e-mail: svnkit-users-help@...
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: use Diff with ISVNReporterBaton

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Jean-Claude,

 > Nevermind I will go for the SVNDiffClient class instead.
To get diff between revisions in unidff (patch) format one have to use
SVNDiffClient. It uses SVNRepository.diff - you may also use it, but it
is more complex and will provide difference between revisions in lower
level form - i.e. how the files tree has changed and file difference
will be represented in form of "deltas" that have to be additionally
processed to generate unidff (patch) data.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

Jean-Claude Antonio wrote:

> Nevermind I will go for the SVNDiffClient class instead.
> Cheers
>
> Jean-Claude Antonio a écrit :
>> Hello,
>>
>> I am trying to use the SVNRepository.diff method with the
>> ISVNReporterBaton interface.
>> I tried,
>>
>>        SVNURL url1 =
>> SVNURL.parseURIDecoded("http://localhost/svn/repo/EComProject/work/.voila/wiki/main.html");
>>
>>              ISVNReporterBaton baton = new ISVNReporterBaton(){
>>            public void report(ISVNReporter reporter) throws
>> SVNException {
>>                //System.out.println(reporter.toString());
>>            }};
>>        repo.diff(url1, 2635,2637, null, true, false, true, baton, null);
>>
>> and I get the error
>>
>> Exception in thread "main" org.tmatesoft.svn.core.SVNException: svn:
>> Invalid report for top level of working copy
>> svn: REPORT of '/svn/repo/!svn/vcc/default': 500 Internal Server Error
>> (http://localhost)
>>    at
>> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
>>
>>    at
>> org.tmatesoft.svn.core.internal.io.dav.DAVRepository.diff(DAVRepository.java:668)
>>
>>    at
>> com.alineo.svn.core.DiffClientTest.testDiffFiles(DiffClientTest.java:63)
>>    at com.alineo.svn.core.DiffClientTest.main(DiffClientTest.java:83)
>>
>> Cheers
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
>> For additional commands, e-mail: svnkit-users-help@...
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
> For additional commands, e-mail: svnkit-users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...