Performing 'svn diff -rBASE' with SVNKit
This example differs from Diffing a working copy against a repository example only in the the right-hand revision parameter passed to an SVNDiffClient:
This doDiff() call is equivalent to 'svn diff -rBASE' in the root of the working copy.
When you run the program you will see an output as follows:
r1 by 'alex' at Wed Sep 03 18:41:09 CEST 2008 Property changes on: /home/alex/workspace/tmp/exampleWC/A/B ___________________________________________________________________ Added: spam + egg Index: /home/alex/workspace/tmp/exampleWC/A/mu =================================================================== --- /home/alex/workspace/tmp/exampleWC/A/mu (working copy) +++ /home/alex/workspace/tmp/exampleWC/A/mu (revision 2) @@ -1 +1 @@ -This is the file 'A/mu'. +New text in 'mu' \ No newline at end of file Index: /home/alex/workspace/tmp/exampleWC/iota =================================================================== --- /home/alex/workspace/tmp/exampleWC/iota (working copy) +++ /home/alex/workspace/tmp/exampleWC/iota (revision 2) @@ -1 +1,2 @@ This is the file 'iota'. +New text appended to 'iota' \ No newline at end of file