M BUZZ CRAZE NEWS
// general

Getting back to an old revision in SVN

By Sarah Rodriguez

The thing is that the revision number 4 was working good. The team did some changes in the last week and when I came back, they are in the 14th revision. I updated, but there are some conflicts and now I can't run my app in Rails. In my working folder I have all the revisions (until 14) but I only want the revision 4.

I tried doing svn up -r4 and it did not work. When opening the Rails app, there is the current code.

How can I erase all the revisions (from 5 to 14) and have only the revision 4 in my working folder?

System: Ubuntu LTS 14.04

2

1 Answer

To "revert" to rev. 4, try the following commands:

svn merge -r:14:4
svn commit -m "Reverted to revision 4."

Source:

7

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy