Undo commit in subversion (svn)
A quick google search will turn up a few blogposts and forumthreads on how to undo a commit in Subversion. This is the easy way to do it, and also serves as a note for myself.
Example: You were working on rev 1707 and you committed some donkeycode that you have to remove. The donkey revision is 1708. You want to roll back.
user@host% svn merge -r 1708:1707 .
U media/shared/css/admin.css
D media/shared/js/ajax.js
U settings.py
U urls.py
OK, so some files were “updated”, meaning that the code you wrote is taken out, and some files are deleted, which are files that you added in your revision. Now check that it only made the changes you wanted it to:
user@host% svn diff
If it all looks OK, go ahead and commit your “rollback.” It’ll get a new revision number, but that’s how SVN works.
Hope this helps someone.
Great !!! Bravo !