You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Stefan Kueng <to...@gmail.com> on 2013/11/18 20:05:10 UTC
svn diff, depth not working
Hi,
Running
$ svn diff folder --depth=empty
still produces the diff for all added children as well, even though the
depth was set to empty.
$ mkdir folder
$ echo test > folder/file
$ svn add folder
$ svn diff folder --depth=empty > patch.diff
now the file patch.diff also contains the diff for folder/file.
This with the latest build from the 1.8.x branch.
Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest interface to (Sub)version control
/_/ \_\ http://tortoisesvn.net
Re: svn diff, depth not working
Posted by Branko Čibej <br...@wandisco.com>.
On 18.11.2013 20:05, Stefan Kueng wrote:
> Hi,
>
> Running
> $ svn diff folder --depth=empty
> still produces the diff for all added children as well, even though
> the depth was set to empty.
>
>
> $ mkdir folder
> $ echo test > folder/file
> $ svn add folder
> $ svn diff folder --depth=empty > patch.diff
>
> now the file patch.diff also contains the diff for folder/file.
>
> This with the latest build from the 1.8.x branch.
Looks like this is an edge case for newly added directories:
$ svn --version --quiet
1.8.4
$ svnadmin create r
$ svn co file://`pwd`/r w
Checked out revision 0.
$ cd w
$ svn mkdir D
A D
$ touch D/f
$ svn add D/f
A D/f
$ svn diff --depth empty D
Index: D/f
===================================================================
brane@zulu:/tmp/test/w$ svn ci -mm
Adding D
Adding D/f
Transmitting file data .
Committed revision 1.
$ svn ps svn:ignore x D
property 'svn:ignore' set on 'D'
$ echo foo >> D/f
$ svn diff --depth empty D
Index: D
===================================================================
--- D (revision 1)
+++ D (working copy)
Property changes on: D
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+x
$ svn diff D
Index: D/f
===================================================================
--- D/f (revision 1)
+++ D/f (working copy)
@@ -0,0 +1 @@
+foo
Index: D
===================================================================
--- D (revision 1)
+++ D (working copy)
Property changes on: D
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+x
--
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane@wandisco.com