info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Going back to an old version of files.


From: Larry Jones
Subject: Re: Going back to an old version of files.
Date: Tue, 3 Oct 2000 14:41:37 -0400 (EDT)

Joao C. Ferreira writes:
> 
> The problem I had was the following: Someone had by mistake changed a lot of
> the files and committed them to the CVS repository without testing them. I
> figured out that no changes were made to the repository after this commit,
> so I could download a working copy of the code by using a date when checking
> out. In order to restore the repository into a working state I copied the
> changed files back from this checkout into my working copy of the files and
> committed them.
> 
> Is there an easier way to do this?

I'd suggest:

        cvs up -D2000-01-01
        cvs tag KnownGood
        cvs up -A
        cvs up -jHEAD -jKnownGood
        cvs ci -m'Revert to known-good version of 2000-01-01'

-Larry Jones

I'm a genius. -- Calvin



reply via email to

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