[Top][All Lists]

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

Re: Checking out an old file, modifying and checking it back in

From: Todd Denniston
Subject: Re: Checking out an old file, modifying and checking it back in
Date: Mon, 15 Sep 2008 17:24:30 -0400
User-agent: Thunderbird (X11/20080707)

Res Pons wrote, On 09/15/2008 04:48 PM:
Hi all
If I check out an old revision of a file, modify, and check it back in, does the revision automatically branch or does it move to the top of the stack as the latest revision? e.g. fileA current revision 1.50 fileA old revision to be modified 1.33. I would like to check out fileA rev 1.33, make changes and check it back into CVS. Would it be checked in as 1.33.1 or 1.51 automatically?

because you have checked out with a 'sticky tag'[1] of a version, i.e., you did
cvs checkout -r1.33 fileA
CVS will not let you commit any changes to that checkout.
If you want a branch, you need to do a branch tag.
If you want to replace the contents from rev 1.50 with the contents of 1.33 into 1.51, (from the link below[1])
cvs checkout fileA
#then either
cvs checkout -p -r1.33 fileA > fileA
#or IIRC
cvs update -j1.50 -j1.33 fileA

cvs commit


Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter

reply via email to

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