[Top][All Lists]

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

Re: How to "undo" a commit?

From: Pierre Asselin
Subject: Re: How to "undo" a commit?
Date: Sun, 22 May 2005 00:00:28 +0000 (UTC)
User-agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (NetBSD/2.0 (i386))

Christian Hujer <address@hidden> wrote:

> What is the best way to make the HEAD revision of the files being the 
> previous 
> revision? I've read the faq, they say if the last version is 1.31, "checkout 
> 1.30 and recheckin as 1.32". But I cannot imagine how to do this.

    cvs update -j 1.31 -j 1.30 the_file
    cvs update -p -r1.30 the_file > the_file

> When I try "cvs update -r 1.30 file" and then "cvs commit file" it of course 
> does not work.

Because it has a sticky revision.  To recover from that,
    cp the_file tempfile
    cvs update -A the_file
    mv tempfile the_file

Any one of these three methods will give you a file with the content of
revision 1.30, ready to be committed as revision 1.32 .

pa at panix dot com

reply via email to

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