GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora Core 7 and older, Knoppix, Ubuntu
Posts: 121
Rep:
SVN revert
I have an SVN repository for a bunch of code. Had received two directories from a co-worker (who doesn't use my svn repository) and used those two to replace two directories in my repository. I committed and everything seemed fine. When I ran an update on a different machine (one where I do updates as a way of keeping a backup of the current version, but never use the files). I then saw that many of the files (that were not in the two directories I replaced) are gone. I can't seem to get the revert command to do anything, and since I have never had to restore to an older version of the repository I do not know how (or if) it can be done.
I want to go back two versions in my repository to get the old files back. Can this be done, and if so what is the command? I am sure it is somewhere on the internet but I couldn't find it at red-book where I normally look and I didn't see anything that stood out to me in my google and forum searches (however it could be because I am a little flustered that I just overwrote my backup with a bad version of my repo and am worried about losing two years of my PhD dissertation work, I guess I learned that my current way of "backing" up, isn't sufficient, and I should start doing better backups, I always have to learn the hardway).
Distribution: Fedora Core 7 and older, Knoppix, Ubuntu
Posts: 121
Original Poster
Rep:
At first I had only searched for svn commands, but now I did find the command
svnadmin recover
but I am not sure how that works. It says that is brings the database back into a consistent state. It doesn't say if I can restore to a certain version number. Also, it says it only works with the bdb backend, how do I tell if I am using that?
Distribution: Fedora Core 7 and older, Knoppix, Ubuntu
Posts: 121
Original Poster
Rep:
I think I got it, I can just checkout an older version of the respository (I wasn't aware that I could do that). But I am not sure what will happen if I try to commit with the older files, the only things of the new revision I want to keep are the two directories I replaced.
So I guess a rollback is a merge with a previous version.
That is a relief. I guess I should learn more about my version control before I continue to screw things up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.