[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unremoving a file?
From: |
Mark D. Baushke |
Subject: |
Re: Unremoving a file? |
Date: |
Fri, 19 Mar 2010 22:44:48 -0700 |
Jake Colman <address@hidden> 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
pgpC3FGD39dd_.pgp
Description: PGP signature