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

Re: Best way to remove accidental additions that aren't committed?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 1 Jul 2009 18:04:21 -0400

On Wed, Jul 1, 2009 at 17:55, Michael Brownlow<brownlow_at_ctelcom.net> wrote:
> What is the best way for unadding a file accidentally added and not yet committed?

svn revert is the correct way.

> svn add file
> svn delete --force --keep-local file
>
> Is that the best way?
>
> Interestingly, "svn delete file" claims that there are local modifications to the file when actually there are none. It also suggests, perhaps counter-intuitively, that "svn delete --force file" will solve the problem. It does remove the uncommitted addition but it also deletes the local file. Probably not what a user will expect in that situation.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2367198
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2367199

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-02 00:05:14 CEST

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.