[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Recovering from cvs remove
From: |
Yves Martin |
Subject: |
Re: Recovering from cvs remove |
Date: |
Thu, 22 Jul 2004 13:24:22 +0200 |
User-agent: |
Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3 |
address@hidden (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