You’ve been there. You have been developing in your trunk for a while and at revision 127 you get the feeling you’ve done it all wrong! The production server is humming away at revision 123 and that’s where you want to start out again. But how can you start again from revision 123? Easy as this with Subversion
$ svn merge -rHEAD:123 .
This will see what changes you’ve made since r123 up until now (r127 in your case) and ‘undo’ them. Next you check in the code and you’ve go a sweet r128 that is exactly the same as r123. You can start over now!















6 Comments
Thank you so much for telling this! I really appreciate it, because I have looked everywhere on the internet and couln’t find it immediately, thanks!
You just saved my ass
saved me hours of work =) thanks for the tip bro
FYI I’ve implemented a GUI method to do this operation in MonoDevelop:
https://bugzilla.novell.com/show_bug.cgi?id=394434
Regards.
Worked perfectly, thanks :)
Many thanks, very helpful post