Friday, 13 January 2012

Subversion Commit Revert

Subversion Commit Backout [svn merge -c]


Step one, perform a local merge with the previous version. Ensure that any work after the commit being reverted-to is saved as it will be overwritten by the merge.

svn merge -c -<commit-version-to-revert> <repo-url>

Step two, commit the reverted code with an appropriate commit message.

svn commit -m "Reverting commit [bad-commit-version] to previous version"

Note:- If any further commits take place between the initial check-in and the merge revert there will be further work to do.

No comments:

Post a Comment