[Top][All Lists]

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

Re: How to "undo" a commit?

From: S I
Subject: Re: How to "undo" a commit?
Date: Sun, 22 May 2005 09:19:48 -0700

I had a similar problem and was about to post. It's like somebody magically read my mind. Thanks Christian for posting and many thanks Pierre for the solution. :)


----Original Message Follows----
From: address@hidden (Pierre Asselin)
To: address@hidden
Subject: Re: How to "undo" a commit?
Date: Sun, 22 May 2005 00:00:28 +0000 (UTC)
Received: from ([]) by with Microsoft SMTPSVC(6.0.3790.211); Sat, 21 May 2005 17:04:11 -0700 Received: from localhost ([] with esmtp (Exim 4.43)id 1DZdyn-0004ao-BWfor address@hidden; Sat, 21 May 2005 20:06:05 -0400
X-Message-Info: JGTYoYF78jFrDPPrXactE4Nmd+8aFpukTHQNjIsPyMM=
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 25
References: <address@hidden>
X-Trace: 1116720028 5720 (22 May 2005 00:00:28GMT)
X-Complaints-To: address@hidden
NNTP-Posting-Date: Sun, 22 May 2005 00:00:28 +0000 (UTC)
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (NetBSD/2.0 (i386))
X-BeenThere: address@hidden
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Announcements and discussions for the CVS version control system<> List-Unsubscribe: <>,<mailto:address@hidden>
List-Archive: <>
List-Post: <mailto:address@hidden>
List-Help: <mailto:address@hidden>
List-Subscribe: <>,<mailto:address@hidden>
Errors-To: address@hidden
Return-Path: address@hidden
X-OriginalArrivalTime: 22 May 2005 00:04:11.0940 (UTC) FILETIME=[C88C3E40:01C55E61]

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
Info-cvs mailing list

reply via email to

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