Subversion Tips
Reverting Committed Changes (Undoing Changes)
To revert changes in the working copy, the 'svn revert' command can be used. To undo changes which have already been committed, however, it is necessary to use the 'svn merge' command. For instance, if I want to undo the changes made between revisions 21 and 35, I would use the command:
svn merge -r 35:21 http://path/to/repos
This would 'reverse merge' the changes made between these revisions into my working copy, at which time I only need to run 'svn commit' to create a new revision with these changes. Note that the revision numbers are backwards for a 'reverse merge'. Running merge with the arguments -r 21:35 would have
added the changes made between revision 21 and revision 35 to my working copy.
--
SamPreston - 27 Apr 2007