Alex Rivera | Logout

cvs, "file should be removed and is still there (or back again)"

Asked 2009-08-17T11:17:05.587
9

I am trying to commit a project in which a file has been "cvs remove"d, but actually needs to be there. The contents has been completely rewritten, but it needs to retain the same name.

I am unable to either commit the project or re-add the file without getting this annoying error message. How do I "unremove" a file in CVS?

Edit
Report

1 Answer

14

This worked for me:

  1. Rename the file

    mv mistakenly_removed_file wtf
    
  2. Ask cvs to add the old version:

    cvs add mistakenly_removed_file
    
  3. cvs then reports it has resurrected the removed file.

    mv wtf mistakenly_removed_file
    

cvs status reveals that the file is now "locally modified"

answered 2009-08-17T12:38:12.720

Your Answer