More on the issue:
Current solution for MacOS features a rewinddir() after removing each
item in the directory. Isn't that a bit of an overkill? I propose a
different approach:
1. do readdir(),
2. if there's nothing to delete, we're done
2. remove everything in the directory
3. do rewinddir()
4. goto 1.
This approach features much less calls to rewinddir() while still
making sure everything is deleted.
It can also be used on every OS, not just MacOS to be on the safe side.
On 6/21/06, Artem Egorkine <arteme@gmail.com> wrote:
> Hi,
>
> I'd been fighting with a subversion repository at TextDrive, getting
> the following error:
>
> >
> >svn: Can't remove 'db/transactions/1-1.txn': Directory not empty
> >
>
> It happens after I commit a revision with many changes - importing
> subversion tree into a repository is one example of such.
>
> I am using svn 1.3.1 (apr/apu 1.2.7) on FreeBSD 6.1-RC.
>
> I have found exactly the same bug discussed here by Garrett Rooney:
> http://svn.haxx.se/dev/archive-2004-05/0376.shtml except that it was
> on MacOS that the bug was seen then. There is actually an issue about
> it too: http://subversion.tigris.org/issues/show_bug.cgi?id=1896
>
> This raises a question, how many more operating systems have that same bug...
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 21 11:56:51 2006