[Top][All Lists]

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

Re: resurrecting a dead revision

From: Larry Jones
Subject: Re: resurrecting a dead revision
Date: Thu, 1 Nov 2001 12:48:04 -0500 (EST)

Sherman Tse writes:
> Could anyone of you tell me how I can retrieve a dead revision?  Lets say I 
> checked revision 1.1 into cvs then later decided to use "cvs remove" to 
> remove the file.  Is there anyway to retrieve this revision that I just 
> removed?

"Retrieve" as in just look at it or as in undo the removal?  The first
is easily done with update (with or without -p as you prefer) -- just
give it an explicit (non-dead) revision number.  If you don't know what
revision number you want, you can use log to list all the revisions, you
just have to give it an explicit file name.  If you want to undo the
removal, use update -j to remove the removal.  For example, if the dead
revision is 1.4, do:

        cvs update -j1.4 -j1.3 file.dat
        cvs ci -m'resurrect' file.dat

-Larry Jones

I don't think math is a science, I think it's a religion. -- Calvin

reply via email to

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