You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Petr Sebor <pe...@scssoft.com> on 2002/11/08 16:21:43 UTC

bug: svn, version 0.14.5 (r3566)

This gave me quite a bit of headache:
lets say I am having a directory structure like that:

src/
src/misc/
src/misc/foo.c
src/misc/bar.c
src/temp/
src/temp/yada.c
src/temp/nada.c
src/work/
src/work/oholic.c
src/work/less.c

now... if I want to delete the src/misc dir, I would normally use
the svn rm misc (from the src directory).. now let's say I am a bonehead
and delete the directory from the shell... 'rm -rf misc' and suddenly 
realize
that I had to do it through svn... ok, let's do the 'svn rm misc' but wtf!
this command will delete eveything in the src directory :-) I ignores
the fact 'misc' is already gone and behaves like 'svn rm *'

This 'works' that way both with linux & win32 clients... I know, it is 
my fault,
I should be using svn properly, but ... it happens :-)

Latest 'successful' test made on:
svn, version 0.14.5 (r3566)
   compiled Nov  3 2002, 16:48:09

Regards,
Petr


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

Re: bug: svn, version 0.14.5 (r3566)

Posted by Philip Martin <ph...@codematters.co.uk>.
Ben Collins-Sussman <su...@collab.net> writes:

> > now... if I want to delete the src/misc dir, I would normally use
> > the svn rm misc (from the src directory).. now let's say I am a bonehead
> > and delete the directory from the shell... 'rm -rf misc' and suddenly
> > realize
> > that I had to do it through svn... ok, let's do the 'svn rm misc' but wtf!
> > this command will delete eveything in the src directory :-) I ignores
> > the fact 'misc' is already gone and behaves like 'svn rm *'
> 
> Yeah, this is a real reproducible bug, it needs to be filed.
> 
> The correct behavior, I guess, is to simply schedule the 'misc' dir
> for deletion in the parent entry.  We do that anyway.

There's possibly a related problem.  If the user runs update it will
normally restore a missing directory.  Now what if the missing
directory is scheduled for deletion, does update still restore it, and
if so does it get restored with the correct scheduling?

-- 
Philip Martin

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

Re: bug: svn, version 0.14.5 (r3566)

Posted by Ben Collins-Sussman <su...@collab.net>.
Petr Sebor <pe...@scssoft.com> writes:

> This gave me quite a bit of headache:
> lets say I am having a directory structure like that:
> 
> src/
> src/misc/
> src/misc/foo.c
> src/misc/bar.c
> src/temp/
> src/temp/yada.c
> src/temp/nada.c
> src/work/
> src/work/oholic.c
> src/work/less.c
> 
> now... if I want to delete the src/misc dir, I would normally use
> the svn rm misc (from the src directory).. now let's say I am a bonehead
> and delete the directory from the shell... 'rm -rf misc' and suddenly
> realize
> that I had to do it through svn... ok, let's do the 'svn rm misc' but wtf!
> this command will delete eveything in the src directory :-) I ignores
> the fact 'misc' is already gone and behaves like 'svn rm *'

Yeah, this is a real reproducible bug, it needs to be filed.

The correct behavior, I guess, is to simply schedule the 'misc' dir
for deletion in the parent entry.  We do that anyway.


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