info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you get back a file after it has been "cvs remove"'d?


From: Larry Jones
Subject: Re: How do you get back a file after it has been "cvs remove"'d?
Date: Sat, 8 Jan 2005 13:15:56 -0500 (EST)

Stephen Carville writes:
> 
> This is probably not the best way to do it, but when I had to recover some 
> files that were 'inadvertenely deleted, I logged onto the server, located the 
> files in the "Attic", copied them to their regular directory, and then 
> changed
>  
> "state dead;" to "state Exp;"

No, that's not the best way to do it.  In fact, it's probably the worst
way possible.  It's akin to cutting a hole through the side of your
house to get in rather than using the door.  You undo a removal the same
way you undo any other change -- either brute force:

        cvs up -r1.7 -p myfile >myfile
        cvs add myfile

or with a merge:

        cvs up -j1.8 -j1.7 myfile

(Assuming that the current dead revision is 1.8 and thus the revision
you want to resurrect is 1.7.)

-Larry Jones

No one can prove I did that!! -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]