[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: resurrecting a dead revision
From: |
Kaz Kylheku |
Subject: |
Re: resurrecting a dead revision |
Date: |
Thu, 01 Nov 2001 19:51:56 GMT |
User-agent: |
slrn/0.9.6.3 (Linux) |
In article <address@hidden>, Sherman Tse wrote:
>Hi all
>
>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?
If you commited a CVS remove to revision 1.1 on the main trunk, then
you get a revision 1.2 whose state is 'dead'. You can update your
working copy to revision 1.1 to get the file back.
To restore the file, you can do something like:
cvs update -p -r 1.1 > file
cvs add file
cvs commit