Size: 431
Comment:
|
← Revision 6 as of 2008-09-04 15:56:34 ⇥
Size: 1509
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Performing 'svn diff -rBASE' with SVNKit = | |
Line 11: | Line 12: |
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 }}} |
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