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

Deleting an Added (but not committed) Tree

From: Peter Davis <peter_at_pdavis.cx>
Date: 2002-08-10 05:40:05 CEST

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

And you have to specify 'a' to 'svn cleanup', or it doesn't work (you can't
just say 'svn cleanup' or 'svn cleanup .') The help for 'svn cleanup' says,
"cleanup: Recursively clean up the working copy, removing locks, resuming
unfinished operations, etc.". So maybe not recursively cleaning up 'a' when
not specified explicitely is another bug?

Is any of this as designed? If so, it's definitely not attractive.

Note that if you 'svn ci' before trying to delete the tree, it works with no
problems. This only applies, just like my other post regarding directory
deletion, to trees that have been added but not committed.

Peter Davis
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 10 05:40:37 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.