How to recover a directory deleted from CVS after making a change?

Once the directory has been deleted with cvs remove <dir>and cvs commitis there an easy way to undo the change - restore the directory in my working copy and in the repository? So far, I have managed to find suggestions that would help if I had not already committed, or if it was a file instead of a directory. If possible, I would like to keep a history of the contents of the directory.

+5
source share
2 answers

(Answering my question, as I understand it).

To recover a deleted directory after deletion, follow these steps:

cvs update -d -R -j <rev2> -j <rev1> <dir>

Where:

<rev2> - This is a revision resulting from the removal of a deletion.

<rev1> - This is the audit immediately before rev2.

<dir> is a remote directory.

+5
source

, , - . :

. $Id $ cvs. , - 1.5. . , , . , 1.4. :

cvs update -j 1.5 -j 1.4 filename

cvs commit filename . cvs 1.5 1.4 . - .

0