Re: Readding deleted files

2002-03-14 Thread Larry Jones

Cristian Gheorghe writes:
> 
> I have removed a file (cvs rm command) which now needs to go back into
> the project with the same name and in the same directory. The file
> which was removed is now in the repository Attic directory. What
> command can I use to be able to "reactivate" the file?

Do you want to recover the old contents, or just create a brand new file
with the same name?  If you want to recover the old contents, use update
with two -j options to undo the remove.  For example, if "cvs log" says
the current revision of the file is 1.40 (with state "dead"), do:

cvs up -j 1.40 -j 1.39 file

If you want a brand new file with the same name, just "cvs add" it and
CVS will more the RCS file out of the Attic when you commit it.

-Larry Jones

That's the problem with nature.  Something's always stinging you
or oozing mucus on you. -- Calvin

___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



Re: Readding deleted files

2002-03-15 Thread Cristian Gheorghe

[EMAIL PROTECTED] (Larry Jones) wrote in message 
news:<[EMAIL PROTECTED]>...
> Cristian Gheorghe writes:
> > 
> > I have removed a file (cvs rm command) which now needs to go back into
> > the project with the same name and in the same directory. The file
> > which was removed is now in the repository Attic directory. What
> > command can I use to be able to "reactivate" the file?
> 
> Do you want to recover the old contents, or just create a brand new file
> with the same name?  If you want to recover the old contents, use update
> with two -j options to undo the remove.  For example, if "cvs log" says
> the current revision of the file is 1.40 (with state "dead"), do:
> 
>   cvs up -j 1.40 -j 1.39 file
> 
> If you want a brand new file with the same name, just "cvs add" it and
> CVS will more the RCS file out of the Attic when you commit it.
> 
> -Larry Jones
> 
> That's the problem with nature.  Something's always stinging you
> or oozing mucus on you. -- Calvin


Sorry for not specifying that. I wanted the file with the old
contents. The file should not have being removed in the first place.
The update with two 'j's worked. Thank you Larry.


-Cristian
___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs