info-cvs
[Top][All Lists]
Advanced

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

Re: Restoring Dead Files


From: Yves Dorfsman
Subject: Re: Restoring Dead Files
Date: Wed, 09 Jul 2008 17:45:34 -0600
User-agent: Thunderbird 2.0.0.14 (X11/20080501)


Todd Denniston wrote:


C) The user issued the equivalent of
`cvs remove -f image_cust1.JPG` and `cvs commit`
[removed it from the sandbox and the repository]


B) _could_ be recovered from by _carefully_ hand editing the CVS/Entries file. {I recommend waiting a bit to see if anyone else responds before using this option, i.e., to a newbie 'here be dragons'.} B & C) should be able to recover from using the method you have used below. (but I think from the errors you got, that A was what was used...i.e. they only did an OS remove not a cvs remove.)

I wouldn't edit the files by hand, but use rcs:
1) move the file from the dead directory back to its original location

2) find out the last version of the file before it got deleted:
rlog  file_name |grep 'revision ' |head -1 |cut -f 2 -d" "

3) assuming you get 1.14, do:
rcs -sEXP:1.14 file_name


--
Yves.
http://www.SollerS.ca





reply via email to

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