info-cvs
[Top][All Lists]
Advanced

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

Re: Restoring deleted files


From: Larry Jones
Subject: Re: Restoring deleted files
Date: Sat, 17 Nov 2001 00:47:34 -0500 (EST)

Dan Moinescu writes:
> 
> How can I restore a file deleted from CVS?
> 
> I did a 'cvs update -r 1.1' (1.1 was the file's version when it was removed)
> and I get the sticky tag 1.1. When I do 'cvs update -A' , as indicated by
> the cvs FAQ to get rid of the sticky tag, I lose the file. What should I do?

When you deleted the file, it created revision 1.2 and marked it as
dead.  The cleanest way to resurrect it is to use a reverse merge to
remove that change:

        cvs update -j1.2 -j1.1 myfile
        cvs commit -m'resurrect' myfile

(Note that it is best to immediately commit resurrected files to avoid a
possible problem with the聽repository file not getting moved out of the
Attic in certain circumstances.)

-Larry Jones

Mom would be a lot more fun if she was a little more gullible. -- Calvin



reply via email to

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