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

Williams, Tim WilliamsTim at PRAIntl.com
Tue Nov 20 14:30:07 GMT 2007


Thanks Flavio.  The only change I would make would be to move Step 3)
ahead of Step 1)  :)

Tim

------------------------------

Message: 5
Date: Mon, 19 Nov 2007 21:02:43 -0200
From: " Fl?vio Etrusco " <flavio.etrusco at gmail.com>
Subject: Re: [cvsnt] Restore from 'state dead' - Entire project dead?
To: "Williams, Tim" <WilliamsTim at praintl.com>
Cc: cvsnt at cvsnt.org
Message-ID:
	<ab4f0a910711191502q45860c76wa29fd63b29e64391 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

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