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

Re: Reverting all changes

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-12-24 04:50:42 CET

On Dec 23, 2007, at 21:17, EWD wrote:

> How can I revert all changes I have made in my working directory?
>
> svn revert -R . does not remove those files that are only in my
> working
> directory. I want to modify my working directory as if I have recently
> ran svn co. How can I do this?

Other than running "svn checkout" again, there isn't a built-in
command for that. You would run "svn revert -R ." and then you would
manually delete the files whose status is now shown as "!". Or you
could write a script to parse the output of "svn status" and do those
deletes automatically. Maybe someone already wrote such a script.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 24 04:51:41 2007

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.