[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'

For example, if you see that your branch has a 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 revision to the branch such that and
should compare as the same file modulo the differences in any RCS keyword

        -- Mark

Attachment: pgpC3FGD39dd_.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]