info-cvs
[Top][All Lists]
Advanced

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

Re: how to roll-back whole commit operation


From: Larry Jones
Subject: Re: how to roll-back whole commit operation
Date: Mon, 15 Sep 2003 13:38:47 -0400 (EDT)

Dickson, Craig writes:
> 
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.

Please do not send MIME and/or HTML encrypted messages to the list.
Plain text only, PLEASE!

> What is the easiest way to roll-back a commit operation? I know when the
> commit happened and nothing has changed on that branch since the commit
> happened? I could use update with 2 -j options, but there is over 150
> changes in the commit, so I would have to do it once for each file if I
> understand it correctly since they all have difference revision numbers.

Probably the easiest thing to do is to temporarily tag the revisions you
want to revert to then update with two -j options.  Something like:

        $ cvs update -rbranch -D'yesterday'
        $ cvs tag temptag
        $ cvs update -rbranch
        $ cvs update -jbranch -jtemptag
        $ cvs commit -m'revert'
        $ cvs tag -d temptag

-Larry Jones

If I get a bad grade, it'll be YOUR fault for not doing the work for me!
-- Calvin




reply via email to

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