LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 07-15-2008, 12:50 PM   #1
jdwilder
Member
 
Registered: Jul 2003
Location: United States
Distribution: Fedora Core 7 and older, Knoppix, Ubuntu
Posts: 121

Rep: Reputation: 15
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).

Thanks for any help,
John
 
Old 07-15-2008, 01:04 PM   #2
jdwilder
Member
 
Registered: Jul 2003
Location: United States
Distribution: Fedora Core 7 and older, Knoppix, Ubuntu
Posts: 121

Original Poster
Rep: Reputation: 15
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?
 
Old 07-15-2008, 01:10 PM   #3
jdwilder
Member
 
Registered: Jul 2003
Location: United States
Distribution: Fedora Core 7 and older, Knoppix, Ubuntu
Posts: 121

Original Poster
Rep: Reputation: 15
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.
 
Old 07-15-2008, 01:42 PM   #4
jdwilder
Member
 
Registered: Jul 2003
Location: United States
Distribution: Fedora Core 7 and older, Knoppix, Ubuntu
Posts: 121

Original Poster
Rep: Reputation: 15
Thumbs up Solved

I did what this page said

http://sankas.blogspot.com/2008/02/h...sitory-to.html

(And then I backed up!!)

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 05:58 PM
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
svn checkout -bash svn command not found Anauj0101 Linux - Newbie 6 04-20-2008 05:50 PM
CVS Newby question: how to do "svn revert filename" with CVS? ve.ru Linux - Software 3 01-28-2007 12:57 PM
tcl 8.4 - revert to 8.3? zipur Linux - Software 0 12-16-2004 02:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration