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

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


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

-Flávio


More information about the cvsnt mailing list