Hi Karl and all, If I removed files using cvs (cvs rm....), I see the files I removed in the Attic-dir. Now in your book (Open Source Development With CVS chapter: What Happens When You Remove A File), you mention that "This means that if you want to restore a removed file, you can't just take it out of the Attic/ and put it back into the project. Instead, you have to do something like this in a working copy...." If I don't have a working copy, meaning I don't have a checked out copy of that file, how do I then get it back/restored?
Best regards, Albin -----Original Message----- From: Karl Fogel [mailto:[EMAIL PROTECTED]] On Behalf Of Karl Fogel Sent: Wednesday, August 07, 2002 6:34 PM To: [EMAIL PROTECTED] Subject: Re: Getting a file that was removed in repository back? "Albin Takami" <[EMAIL PROTECTED]> writes: > So, I was wondering how I can get the testing123.v file back, after removing > it in the repository? You can't get it back. You've removed it. It's gone. The only thing you can do now is remove any references from it in your working copies (delete the appropriate line in CVS/Entries files in working copies). There is no typo, you just have to read the commands in the example carefully. Line 3 is an "ls", not a "cd", in particular. -Karl > .. > .. > What Happens When You Remove A File > When you remove a file from a project, it doesn't just disappear. CVS must > be able to retrieve such files when you request an old snapshot of the > project. Instead, the file gets put in the Attic, literally: > > 1. floss$ pwd > 2. /home/jrandom/src/myproj > 3. floss$ ls /usr/local/newrepos/myproj/ > 4. README.txt,v a-subdir/ b-subdir/ foo.jpg,v hello.c,v > 5. floss$ rm foo.jpg > 6. floss$ cvs rm foo.jpg > 7. cvs remove: scheduling 'foo.jpg' for removal > 8. cvs remove: use 'cvs commit' to remove this file permanently > 9. floss$ cvs ci -m "Removed foo.jpg" foo.jpg > 10. Removing foo.jpg; > 11. /usr/local/newrepos/myproj/foo.jpg,v <-- foo.jpg > 12. new revision: delete; previous revision: 1.1 > 13. done > .... > ... > .. > > Hope you can help. > > Best regards, > Albin _______________________________________________ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
