Re: How to restore Attic files in CVS
Peter Toft <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.general |
|---|---|
| Message-ID | <Pine.LNX.4.64.0904050911040.14785@serenity> |
On Sun, 5 Apr 2009, Jim Hyslop wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Trinh, An wrote: >> I have files that went into the Attic. How do I restore them back? >> I've moved the files out of the Attic folder but when I checkout the >> folder, the cvs GUI doesn't show any files under the folder. Viewing >> the files revealed that they're in DEAD State. > > Someone has 'cvs remove'd the files. Just restore them with 'cvs add'. cvs log <file> Find til newest non-dead version cvs update -r <last-version> <file> mv <file> foo cvs update -A <file> mv foo <file> cvs add <file> cvs commit -m "bring out your dead, bring out your dead" <file> /pto -- Peter Toft, Ph.D. [[email protected]] http://petertoft.dk I blog at http://www.version2.dk/blogs/petertoft