Reverting an SVN Commit

Your cruising along carefully documenting your code changes and testing along the way. Last night you had your code reviewed and this morning you committed.

Oops. Someone else committed since your last 'svn up' and now your change broke things. HELP!

All is not lost, a simple process can save the day, but there are a few things to understand.


 * Reverting the change does NOT remove it form history. Version xxx will still be bad if someone checks it out directly.
 * Make NO changes between the reverse merge and committing. Reverse, commit then change and commit if necessary.

So now project 'savetheworld' was committed with a corrupt 'lexluther.inc' in version 1999, you need to perform the following:

svn update svn merge --revision 1999:1998. svn commit -m"Removing corrupted changes from Lex Luther include"

see more: http://svnbook.red-bean.com/en/1.5/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.undo