Re: svn_fs_delete() vs. svn_fs_delete_tree()
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-11-05 01:39:35 CET
kfogel@collab.net wrote:
Pardon my impudence, Karl, but that was an almost content-free reply, given that C-Mike had already perceived that the two functions are different. :-)
As I read it, the difference is not that svn_fs_delete() only works on files, but that it will delete a directory only if it is empty. In other words, it is like svn_fs_delete_tree() but with a check for emptiness prepended. In a user interface, such a check is usual to try to avoid disaster, but that does not seem appropriate for an API.
svn_fs_delete[_tree] are wrappers around svn_fs__dag_delete[_tree]. svn_fs_delete is indeed not used, except by its test suite, and nothing apart from it uses svn_fs__dag_delete.
C-Mike's idea of losing the non-recursive version sounds OK to me.
- Julian
---------------------------------------------------------------------
|
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.