How to recover deleted files from CVS?

I was faced with a problem where I needed to view a file which had already been deleted from CVS. How can I view the old versions of a file which has been deleted from CVS? Doesn't CVS keep the files and their history even when they are deleted?

0
4 comments

CVS creates for deleted files a new directory called "Attic". In this directory CVS moves the files instead deleting them.
You can browse to this directories with "ViewCVS", "CVS Help" or other tools.

0

So it's not possible to undelete files from within IDEA, but I need to use external tools?

0

What COULD work (I have not tested it myself, please try it first somewhere else :))

Create a new file in the same place with exactly the same name, CVS might treat it as a new version of the file, so you could be able to retrieve previous version from history.

0

Thanks. That works.

0

Please sign in to leave a comment.