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

svn rm --keep-local silently deletes unversioned files

From: Hrvoje Nikšić <hniksic_at_gmail.com>
Date: Wed, 4 Nov 2009 10:10:55 +0100

In svn 1.5.4 svn rm deletes unversioned files even when --keep-local
is specified. This is undocumented and leads to nasty surprises—for
example, a user may type `svn rm --keep-local *' in a directory to
unversion all files, retaining them for his own use. What happens
instead is that versioned files are unversioned, and unversioned files
are deleted without question.

If this is the intended behavior, it should be clearly documented.
The current documentation claims:

Items specified by PATH are scheduled for deletion upon the next
commit. Files (and directories that have not been committed) are
immediately removed from the working copy unless the --keep-local
option is given. The command will not remove any unversioned or
modified items; use the --force option to override this behavior.

# in a working copy
$ touch foo
$ svn st foo
? foo
$ svn rm --keep-local foo
$ ls foo
ls: cannot access foo: No such file or directory


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-04 10:13:11 CET

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

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