You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by frame <xs...@yahoo.com> on 2012/02/16 15:18:40 UTC

a question about "svn del"

Hi:

I have been using subversion for several years. One thing I don't
really understand is "svn del":

In my local area, if I want to delete a directory:

svn del junk_dir

svn commit junk_dir -m "deleted it"

Now, if another person(or me in another computer) updated his local
area, junk_dir is still in his local area, but not versioned. However,
*sometimes* I saw junk_dir is completely deleted in the local area by
svn during update. So the puzzle in my mind is why sometimes junk_dir
still in another person's local, but unversioned and sometimes
automatically deleted in his local area.

Thank you very much.

Re: a question about "svn del"

Posted by Daniel Shahaf <da...@elego.de>.
Ulrich Eckhardt wrote on Thu, Feb 16, 2012 at 16:15:54 +0100:
> Am 16.02.2012 15:18, schrieb frame:
> >In my local area, if I want to delete a directory:
> >
> >svn del junk_dir
> >
> >svn commit junk_dir -m "deleted it"
> 
> Just wondering, don't you have to commit the parent dir?
> 

Under the hood, yes.  But I assume the client library might be taking
care of this particular detail.

Re: a question about "svn del"

Posted by Ulrich Eckhardt <ul...@dominolaser.com>.
Am 16.02.2012 15:18, schrieb frame:
> In my local area, if I want to delete a directory:
>
> svn del junk_dir
>
> svn commit junk_dir -m "deleted it"

Just wondering, don't you have to commit the parent dir?


> Now, if another person(or me in another computer) updated his local
> area, junk_dir is still in his local area, but not versioned. However,
> *sometimes* I saw junk_dir is completely deleted in the local area by
> svn during update. So the puzzle in my mind is why sometimes junk_dir
> still in another person's local, but unversioned and sometimes
> automatically deleted in his local area.

SVN's credo: Do not destroy a user's changes! If create a local change 
inside that folder, be it adding a file (not svn add'ing!) or modifying 
one, SVN will not delete those changes. So, if your folder was "clean", 
it will be automatically removed, any other changes will be preserved.

Uli

**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************