info-cvs
[Top][All Lists]
Advanced

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

RE: rollback/revert changes?


From: Chuck . Irvine
Subject: RE: rollback/revert changes?
Date: Wed, 13 Dec 2000 09:08:30 -0600

Say you've just checked in revision 1.2 of foo.txt. The way that 
I would revert is:

$ cvs update -j 1.2 -j 1.1 foo.txt
$ cvs ci foo.txt

This gives you revision 1.3 which is the same as 1.1. I personally don't
like the idea of a rollback command that completely purges a particular
revision of a file for a couple of reasons. Its possible that the purge
will turn out to be a mistake. Its possible that the person that checked
in the revision won't agree that it should be rolled back, etc.

Chuck 

> -----Original Message-----
> From: nick [mailto:address@hidden
> Sent: Wednesday, December 13, 2000 2:41 AM
> To: erics; info-cvs
> Cc: nick
> Subject: rollback/revert changes?
> 
> 
> I was thinking.  Many people have told me this is a kludge.  Other vc
> systems support rollback.  Is support for rollback (cvs rollback
> file.c -v ?) worth diving into the cvs source?  A few people 
> have told me it
> would be productive, but they didn't want to touch the cvs code.
> 
> ?????
> 
> >>>>> "Eric" == Eric Siegerman <address@hidden> writes:
> 
>     > On Thu, Nov 23, 2000 at 08:16:49PM -0500, Nick Papadonis wrote:
>     >> Anyone know of a better/easier way of rolling back to a
>     >> previous file version other then the following sequence:
>     >> 
>     >> cvs update -rver file.c mv file.c file.c.older cvs update -A
>     >> file.c mv file.c.older file.c cvs commit -m "reverting to prev
>     >> version" file.c
> 
>     > Yeah: cvs update -p -rver file.c >file.c cvs commit -m
>     > "reverting to prev version" file.c
> 
>     > Still a kludge, but a shorter one :-)
> 
>     > --
> 
>     > | | /\ |-_|/ > Eric Siegerman, Toronto, Ont.  address@hidden
>     > | | / Nobody ever got fired for buying Microsoft -- but they
>     > could get fired for relying on Microsoft.  - Chris Garrigues
> 
>     > _______________________________________________ Info-cvs mailing
>     > list address@hidden
>     > http://mail.gnu.org/mailman/listinfo/info-cvs
> 
> 
> -- 
> - Nick
> 
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs
> 


reply via email to

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