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

Re: diffs & removed directories

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-10-19 19:30:06 CEST

Gustavo Niemeyer <niemeyer@conectiva.com> writes:

> That happens because in libsvn_repos/delta.c:delta_dirs(), delete()
> is called for each entry in the source path that doesn't exist in
> the target path. OTOH, the editor function
> libsvn_client/repos_diff.c:delete_entry() simply checks the path kind,
> and forwards the call to the libsvn_client/diff.c:diff_dir_deleted()
> diff callback function, which does nothing.
>
> IMO, delete_entry() should be changed to recurse into the directory
> and call itself recursivelly for each entry, if recursion is enabled.

I'm not sure that's the right thing to do, it would affect more than
diff, for example it would also affect update. Look at the function
diff_dir_deleted in libsvn_client/diff.c, I think the plan is to call
RA->get_dir (which didn't exist when the diff editor was written) to
get a separate report for the deleted directory.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 19 19:30:59 2002

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.