Rockbox Development > Starting Development and Compiling
Reverting to clean SVN
major_works:
They say the only dumb questions are the ones you don't ask, aso here goes:
Say I've checked out the current revision of SVN and then apply a bunch of patches. Something goes awry, though, and I want to revert my local repository to its original state.
How do I apply the revert command in Cygwin to do this?
cool_walking_:
I never use the CLI for SVN, but it looks like "svn revert -R *" in the rockbox trunk directory should do it.
You might want to look into TortoiseSVN.
GodEater:
--- Quote from: cool_walking_ on January 09, 2008, 01:49:13 AM ---I never use the CLI for SVN, but it looks like "svn revert -R *" in the rockbox trunk directory should do it.
--- End quote ---
Nearly right :)
"svn revert -R ."
linuxstb:
One thing you need to be aware of is that "svn revert" will only touch files that are part of SVN. This means that if your patches have created new files, then those new files will be unknown to SVN, and hence still sitting on your disk.
This can cause problems if you try to apply the patch again.
The only solution I know is to type "svn status" to see files listed with a ?, and manually delete them. I normally do that separately within the "apps" and "firmware" directories.
cool_walking_:
"svn clean" seemed like a natural name for that, so I googled it, and...
http://svn.collab.net/repos/svn/trunk/contrib/client-side/svn-clean
I'm assuming it actually works and isn't a work in progress since it says Copyright 2004.
Navigation
[0] Message Index
[#] Next page
Go to full version