[Top][All Lists]

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

Re: How to do a "roll back"

From: Mike Pumford
Subject: Re: How to do a "roll back"
Date: Fri, 07 Sep 2001 15:48:40 +0100

>       I have a file named, the last revision is 1.5, and I want to
> do a rollback to revision 1.2, and I do not know how to do it. 
cvs update -j 1.5 -j 1.2
cvs commit -m "Rolled back to 1.2"

WARNING: The above method keeps any local changes you have made to the 

>       I work around I find is that I make an update with revision 1.2, copy
> that file, make another update with revision 1.5, copy back the file and
> commit. But I do not like this.
I assume you mean:
cvs update -pr 1.2 >
cvs commit -m "Rolled back to 1.2"

This is also perfectly valid and is what most people in my company do.


reply via email to

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