You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ben Collins-Sussman <su...@collab.net> on 2005/07/05 20:28:16 UTC

Re: BUG: svn delete doesn't remove symlinks

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

Re: BUG: svn delete doesn't remove symlinks

Posted by Kevin Ballard <Ke...@sb.org>.
On Jul 5, 2005, at 4:28 PM, Ben Collins-Sussman wrote:

> 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?

Ok, it's filed:

http://subversion.tigris.org/issues/show_bug.cgi?id=2352

-- 
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

Re: BUG: svn delete doesn't remove symlinks

Posted by Kevin Ballard <Ke...@sb.org>.
On Jul 5, 2005, at 4:43 PM, Ben Collins-Sussman wrote:

> [please keep this discussion on users@ list]

D'oh, I just hit reply and sent it. Most of the lists I'm on do  
replies to the list by default :P

> Hm?  I wasn't asking you to test the latest trunk code, I was just  
> asking you to file your recipe as a new bug in the bug-tracker.   
> Did you already do so?  Is this bug already filed?

Oh, it's not filed? It's been so long since I created that recipe I  
don't remember what I did with it. I thought you were asking for the  
recipe to be tweaked for the --force bit.

I'll go look into filing it now.

-- 
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

Re: BUG: svn delete doesn't remove symlinks

Posted by Ben Collins-Sussman <su...@collab.net>.
[please keep this discussion on users@ list]


On Jul 5, 2005, at 3:38 PM, Kevin Ballard wrote:

> Well, I only have the 1.2.0 release installed and the recipe works  
> as advertised on that release. In order to file a new bug I'd have  
> to check out the latest trunk code and compile that to test for  
> myself, which is something I'd rather not do right now unless  
> absolutely necessary.
>
> Is there some reason that this tidbit of info couldn't just be  
> attached to the existing bug report?


Hm?  I wasn't asking you to test the latest trunk code, I was just  
asking you to file your recipe as a new bug in the bug-tracker.  Did  
you already do so?  Is this bug already filed?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org