[Top][All Lists]

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

Re: revision control

From: Aldo Longhi
Subject: Re: revision control
Date: Fri, 29 Sep 2000 12:49:51 EDT

On Sat, 23 Sep 2000, Bill Shields wrote:

Question:  What is the best way to revert all the files back to the
previous individual versions that were good?

$ cvs update -j <cur_vers> -j <prev_vers> <file>
$ cvs commit <file>

This only works if the latest version is the one you want to get rid
of.  If there have been changes made since the bad versions were
commited, then you'll have a litte more work to do...

You'll have to do this for each file, or write a script to do it
for you.


What about this instead:
("foo" is the file in question)...

$ cvs up -r <good_vers> -p foo > foo
$ cvs ci foo

This will get the version that you want, overwrite
your existing local copy, then check it in as the
latest version.

- Aldo

Get Your Private, Free E-mail from MSN Hotmail at

Share information about yourself, create your own public profile at

reply via email to

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