Jake Colman <[email protected]> writes: > I 'cvs removed' a file from a branch. I now realize that it should not > have been removed. How do I get it back?
If you have not yet done a 'cvs commit', then 'cvs add filename' will
undo the 'cvs remove filename' operation. If you have done a 'cvs
commit', then using something like the command:
cvs log filename
to find the correct revisions for the branch should see a 'dead'
revision.
For example, if you see that your branch has a 1.1.2.10 as the 'dead'
revision, then
cvs update -j1.1.2.10 -j1.1.2.9 filename
will apply the reverse patch to revert the change which cause the file
to be removed from the branch. Doing a 'cvs commit' will re-add the file
under the 1.1.2.11 revision to the branch such that 1.1.2.9 and 1.1.2.11
should compare as the same file modulo the differences in any RCS keyword
values.
-- Mark
pgpldhxTO41Sn.pgp
Description: PGP signature
