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

Re: Deleting an Added (but not committed) Tree

From: Nuutti Kotivuori <naked_at_iki.fi>
Date: 2002-08-10 13:07:43 CEST

Peter Davis wrote:
> Try the following:
>
> $ svnadmin create test
> $ svn co file://`pwd`/test test-work
> $ cd test-work
> $ svn mkdir a a/b
> $ svn rm --force a
> subversion/libsvn_wc/lock.c:348: (apr 21045, src 0)
> svn: Working copy not locked
> svn: directory not locked (a/b)
>
>
> After that, you have to do (in this exact order):
>
> $ svn rm --force a/b
> $ svn cleanup a
> $ svn rm --force a

Just a note - to undo a scheduled, but not yet committed add - one
should use 'svn revert'.

And indeed:

$ svn mkdir a a/b
A a
A a/b
$ svn revert a
Reverted a
$ rmdir a/b a
$ svn up
At revision 5.

No problems. Your other comment has a point though - and this comment
has a point about broken 'svn rm' behaviour - but the overall thing
which you are trying to achieve does get done with a different
command.

-- Naked

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 10 13:09:43 2002

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

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