Size: 117
Comment:
|
Size: 1463
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
This example differs from [[Diffing a working copy against a repository]] in parameters passed to an SVNDiffClient: | This example differs from [[Diffing a working copy against a repository]] example only in the the right-hand revision parameter passed to an SVNDiffClient: {{{#!java /* * This corresponds to 'svn diff -rBASE'. */ diffClient.doDiff(wcRoot, SVNRevision.UNDEFINED, SVNRevision.WORKING, SVNRevision.BASE, SVNDepth.INFINITY, true, System.out, null); }}} 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 }}} |
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