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

Re: BUG: svn delete doesn't remove symlinks

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-07-05 22:28:16 CEST

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

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

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