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

BUG: svn delete doesn't remove symlinks

From: Kevin Ballard <Kevin_at_sb.org>
Date: 2005-05-03 10:09:33 CEST

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.

This is a moderately annoying bug because it crops up every time I
try to delete/move a folder with an Xcode project that's been built
(because the build dir has symlinks buried inside).

-- 
Kevin Ballard
kevin@sb.org
http://www.tildesoft.com
http://kevin.sb.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 3 10:11:21 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.