Re: Unremoving a file?
"Mark D. Baushke" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
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
signature.asc
(application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFLpGDQCg7APGsDnFERAgt0AJ4j6TaocYw5Df8FuJTa2GeqktZRkQCeJV1Q E9oiN3gcXxWtmDMBxgYYNE0= =xb7N -----END PGP SIGNATURE-----