You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by EWD <ed...@gmail.com> on 2007/12/24 03:17:56 UTC
Reverting all changes
Hi,
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?
Thanks in advance,
EWD
--
View this message in context: http://www.nabble.com/Reverting-all-changes-tp14484223p14484223.html
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Reverting all changes
Posted by Ryan Schmidt <su...@ryandesign.com>.
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