[EMAIL PROTECTED] (Carlos) writes:

> Hello,
>
> A user just removed all files (and committed the change). I guess the
> culprit was some IDE he was using, but anyway:
>
> How can I undo this change?
>
> Almost all files in the repository were removed (they are in the
> Attic). I can do a "cvs co -D '3 hours ago'" and recover them, but how
> do I put them back into the repository without losing their history?
>
> I barely know how to use CVS, except the basic commands :(.

 With cvs admin, you can remove the latest revision that mark the file
 as 'DEAD'.

 But I think that command does not move back the RCS file from Attic
 to the normal directory.

 Maybe you have to create a script to do the job from a working copy
 (to avoid to get back DEAD files before the mistake):
    cvs admin -o 1.x path/file
 and a move command directly on the repository mv path/Attic/file
 path/file

 BUT you should test it first on a short test case and of course have
 a complete backup before the final run...

 Good luck
-- 
Yves Martin
_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/info-cvs

Reply via email to