Reverting in Subversion Repositories

It is sometimes useful to revert to the revision of a file that has already been checked in:

  1. Retrieve previous revision X of file FILE:

svn cat -r X FILE >FILE

  1. Commit previous revision to repository:

svn commit --message "reverted to rX" FILE