[cvsnt] Restore from 'state dead' - Entire project dead?

Flávio Etrusco flavio.etrusco at gmail.com
Mon Nov 19 23:02:43 GMT 2007

Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.

On Nov 19, 2007 5:10 PM, Williams, Tim <WilliamsTim at praintl.com> wrote:
> Hi folks,
> I saw the recent post asking about resurrection from "state dead".  I
> use this approach for single files:
>  cvs -log -N filename     [find the last non-dead revision]
>  cvs up -r revisionNumber -p filename > filename
>  cvs add filename
>  cvs commit filename "back from the dead..."
> But what if a person accidentally CVS Removes most of a project?  Don't
> laugh - it has happened due to lack of training and failure to
> understand the Remove command. What is the best method to get the files
> back and retain their revision history? We may be talking many, many
> files here, so bringing them back on a file-by-file basis as per above
> would lead to madness.
> Tim
> SAS Sys Admin

1) You don't have to run 'update' before 'add'. IIRC in this case you
don't need to run 'commit' also.
2) You should obtain the list of files using 'cvs rls', 'cvs rlog' or
whatever, and then iterate 'cvs add' through them all using 'for'
shell command.
3) Sentence the guy to 10 whips :-P


More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook