Tuesday, February 26, 2008

revert back to an old revision in subversion

Someone restructured the code and directories then committed into the repository, but it was discovered what has been done is on the wrong track. Now we want to revert back to a revision before all these bad changes. The changes were between revisions 2737 - 2738, we wanted to go back to revision 2736 to start over, issue the command:

svn merge -rHEAD:2736 .

Now we can start over from revision 2736, commit it into the repository as revision 2739, the missing files and directories would be copies from revision 2736.

No comments: