[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn diff --no-diff-deleted doesn't affect deleted directories

From: David Glasser <glasser_at_davidglasser.net>
Date: 2007-08-01 16:39:01 CEST

On 8/1/07, David Glasser <glasser@davidglasser.net> wrote:
> svn_client_diff4 has a 'no_diff_deleted' option, which corresponds to
> the 'svn diff --no-diff-deleted' flag. Based on the documentation of
> the parameter and flag, there's no reason to suspect that it only
> controls output for the deletion of files which are deleted because
> the editor called 'delete_entry' on the file itself, as opposed to
> those which are recursively deleted because a parent was deleted.
> That is, given a flag documented as
>
> * If @a no_diff_deleted is true, then no diff output will be
> * generated on deleted files.
>
> one would assume that when the flag is false, diff output is generated
> for *all* deleted files, not just non-recursively deleted files.

Charles pointed out on IRC that this is only true for repos-related
diffs, not wc-wc diffs; if you schedule-delete a directory, 'svn diff'
will happily tell you about all the files you've deleted. This is
because the wc diff driver *never* calls the dir_deleted diff
callback. I'm not sure which behavior is better.

--dave

-- 
David Glasser | glasser_at_davidglasser.net | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 1 16:37:30 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.