You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Michael Brownlow <br...@ctelcom.net> on 2009/07/01 21:55:04 UTC

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

What is the best way for unadding a file accidentally added and not yet committed?

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@subversion.tigris.org].

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

Posted by Michael Brownlow <br...@ctelcom.net>.
> On Wed, Jul 1, 2009 at 17:55, Michael Brownlow<br...@ctelcom.net> wrote:
> > What is the best way for unadding a file accidentally added and not yet committed?
> 
> svn revert is the correct way.

Worked great! Thank you.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Andy Levy <an...@gmail.com>.
On Wed, Jul 1, 2009 at 17:55, Michael Brownlow<br...@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@subversion.tigris.org].
>

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].