On May 3, 2005, at 3:09 AM, Kevin Ballard wrote:
> svn delete doesn't remove symlinks when deleting unversioned  
> folders. Here's a transcript that demonstrates this:
>
> Eldamar:~/Dev/Scratch$ svnadmin create --fs-type fsfs repo
> Eldamar:~/Dev/Scratch$ svn co file://$PWD/repo wc
> Checked out revision 0.
> Eldamar:~/Dev/Scratch$ cd wc
> Eldamar:~/Dev/Scratch/wc$ svn mkdir dir
> A         dir
> Eldamar:~/Dev/Scratch/wc$ cd dir
> Eldamar:~/Dev/Scratch/wc/dir$ touch foo
> Eldamar:~/Dev/Scratch/wc/dir$ svn add foo
> A         foo
> Eldamar:~/Dev/Scratch/wc/dir$ mkdir bar
> Eldamar:~/Dev/Scratch/wc/dir$ svn propset svn:ignore bar .
> property 'svn:ignore' set on '.'
> Eldamar:~/Dev/Scratch/wc/dir$ cd bar
> Eldamar:~/Dev/Scratch/wc/dir/bar$ ln -s ../foo
> Eldamar:~/Dev/Scratch/wc/dir/bar$ cd ../..
> Eldamar:~/Dev/Scratch/wc$ svn commit -m ''
> Adding         dir
> Adding         dir/foo
> Transmitting file data .
> Committed revision 1.
> Eldamar:~/Dev/Scratch/wc$ ls
> dir/
> Eldamar:~/Dev/Scratch/wc$ svn delete dir
> D         dir/foo
> D         dir
> svn: Can't remove 'dir/bar': Directory not empty
>
> This was done with Subversion 1.2.0 RC 2.
Thanks for the bug recipe, Kevin.  I'm able to reproduce this bug  
using the latest trunk code too... although my initial attempt to  
delete tells me to use --force:
$ svn rm dir
svn: Use --force to override this restriction
svn: 'dir/bar' is not under version control
But then when I use --force, I do indeed the error iff the  
unversioned subdir contains a symlink:
$ svn rm dir --force
D         dir/foo
D         dir
svn: Can't remove 'dir/bar': Directory not empty
Kevin, can you file a new bug?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul  5 22:56:11 2005