info-cvs
[Top][All Lists]
Advanced

[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 queue.cc, 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 queue.cc
cvs commit -m "Rolled back to 1.2" queue.cc

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

>       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 queue.cc >queue.cc
cvs commit -m "Rolled back to 1.2" queue.cc

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

Mike





reply via email to

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