May '09
3

I’m working on rewriting the django app that stores our applications. The version that is out now was only meant to get the site up, the new one will have versions, change logs, todos, and multiple information views!The live version of the site accidentally got updated and I had to scramble to figure out how to revert to a revision in subversion. I am new to the svn command line tool, mostly use Versions for all my subversion needs. It was not as intuitive as I thought it would be. Easy but not intuitive because you have to use merge instead of revert, revert is only for reverting local changes in the working copy. Here is the structure of the merge command for reverting to a revision.

svn merge -r #current rev#:#desired rev# http://path.to.repository/trunk/checkout

svn merge -r 157:146 https://svn.repository.com/trunk/core

You can use the flag –dry-run to see what is going to happen.
svn merge -r 157:146 –dry-run https://svn.repository.com/trunk/core

Leave a Reply