RE: [help] "cvs rm -f" question

2002-05-16 Thread Dale . Miller

Nguyen,

In http://www.cvshome.org/docs/manual/cvs_7.html#SEC68 you will see:


If you execute remove for a file, and then change your mind before you
commit, you can undo the remove with an add command.

  
  $ ls
  CVS   ja.h  oj.c
  $ rm oj.c
  $ cvs remove oj.c
  cvs remove: scheduling oj.c for removal
  cvs remove: use 'cvs commit' to remove this file permanently
  $ cvs add oj.c
  U oj.c
  cvs add: oj.c, version 1.1.1.1, resurrected


HOWEVER, the resurrected versions will not contain any local modifications
that you had not checked in.
If you had checked in your changes you are in luck.

Dale Miller


-Original Message-
From: gmres [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 7:13 AM
To: [EMAIL PROTECTED]
Subject: [help] "cvs rm -f" question


Dear all, 

I'm a newbie to cvs, please excuse me if my question is in FAQ. 
My problem is: 
- i have a local cvs server 
- after checking out a project, many changes has been made 
- because the changes include deleting files from the project, i must have
used "cvs rm -f [filenames]" 
- unfortunately, instead of this command, i used "cvs rm -f" (without any
file names!), and all files in the project directory are accidentally
removed :-( 

Please help me recover deleted files, if it is possible. 

Thanks so much in advance, 
Nguyen 



Join Excite! - http://www.excite.com
The most personalized portal on the Web! 

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



Re: [help] "cvs rm -f" question

2002-05-16 Thread david

>  Dear all,
> 
> I'm a newbie to cvs, please excuse me if my question is in FAQ.
> My problem is:
> - i have a local cvs server
> - after checking out a project, many changes has been made
> - because the changes include deleting files from the project, i must have 
used "cvs rm -f [filenames]"

I don't use "cvs rm -f", for similar reasons.  Destructive commands should
be slightly awkward, and streamlining them is often a bad idea.

> - unfortunately, instead of this command, i used "cvs rm -f" (without any 
file names!), and all files in the project directory are accidentally 
removed :-(
> 
> Please help me recover deleted files, if it is possible.
>
Which files?  If you didn't commit the changes, then you didn't change
the repository.  (If you did, it's possible to check out the files again
and re-add them.)  If you want to recover the files you deleted, it's
probably impossible unless they were backed up.  Unix has one-step
file deletion, unlike the Macintosh and Microsoft Windows which have
a two-step, and that two-step deletion has saved me on occasion.
 
David H. Thornley| If you want my opinion, ask.
[EMAIL PROTECTED]   | If you don't, flee.
http://www.thornley.net/~thornley/david/ | O-

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