23Reverting a Committed Revision

Sometimes you will want to undo a change that has been committed to the repository. You might find out that a change intended to fix a bug actually introduced a new bug, and you want to undo your attempted bug fix. The requirements for your software might have changed, meaning that some code changes you committed are no longer worthwhile. Whatever the reason, Subversion’s history tracking tools allow you to go back and undo the changes that were made.

Subversion doesn’t actually allow us to delete history from the repository; we can only keep moving forward. To undo an old revision, we have to reverse whatever changes were made in the old revision and then commit a new revision. This is called a reverse merge ...

Get Pragmatic Guide to Subversion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.