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

Re: Why --force with mv?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-12-20 15:17:42 CET

On Dec 19, 2004, at 10:19 PM, Anthony Shipman wrote:

> If I try to rename a file with 'svn mv' and it has been modified then
> I get a
> message like
>
> svn: Use --force to override this restriction
> svn: Move will not be attempted unless forced
> svn: 'LDAPIf.h' has local modifications
>
> What am I being protected from here? Is there some risk to the version
> tree or
> am I being protected from doing something dumb?

Subversion doesn't have true moves. 'svn mv' == 'svn cp; svn rm'.

If you try to 'svn rm' a modified file, you'll get the same warning.
Subversion does everything it can to avoid destroying unversioned data.
  So both 'svn rm' and 'svn mv' ask you to --force any deletion that
would do so.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 20 15:21:06 2004

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.