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

Re: Removing non-committed files?

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-06-03 16:44:02 CEST

Justin Erenkrantz <jerenkrantz@apache.org> writes:

> % svn add my-file
> <this is okay>
> % svn rm my-file
>
> svn_error: #21114 : <Attempting restricted operation for modified resource>
> Use --force to override this restriction
>
> svn_error: #21114 : <Attempting restricted operation for modified resource>
> 'my-file' has local modifications
>
> I don't know if this has been discussed before, but it'd be awful
> nice if the entry is newly added that I can remove it without adding
> --force.

I can tell you why it works the way it does. At the moment any change
you make with 'svn rm' can be undone with 'svn revert'. Changes that
cannot be reverted require 'svn rm --force'. Thus requiring --force
in the situation above is intentional.

I guess there is an argument for different behaviour, but I like the
current behaviour.

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 3 16:44:35 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.