[Top][All Lists]

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

Re: delete the history of a file

From: Mark E. Hamilton
Subject: Re: delete the history of a file
Date: Thu, 28 Sep 2006 10:40:11 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.12) Gecko/20050920

FD wrote:
My problem is:
I have a file stored in a CVS repository whit version number 1.2
if I update the file with a new version without -r1.3 parameter (I'm
forgot the parameter), cvs archive the file with number release 2.1.

I can't explain why CVS incremented the revision from 1.2 to 2.1. It should have incremented it to 1.3 automatically. One of the gurus here can probably explain it.

IAE, you should not be setting the file revision numbers yourself when you commit files. As you've found you're just going to cause problems for yourself. It's simpler to treat them as CVS internal numbers only, and use tags to mark important points in your code.

I can understand the desire to have the major revision number match your product version number. It can be more logical in some situations where the file revisions are visible (cvs diff, for instance). However, you should only set the major revision once, and then let CVS increment the minor revisions automatically.

Now I want delete the file completly with
cvs remove "myfilename"
cvs commit "myfilename"

I remove the file "myfilename",v too

I assume that you mean you removed the 'Attic/myfilename,v' file, since that's where it was moved to when you removed/committed it.

When I want add a file with name "myfilename" the first version number
is 2.2

explains why your new 'myfilename' would be assigned a revision of 2.1. I can't explain why it's getting set to 2.2, unless you didn't remove the Attic/myfilename,v file. In this case the 'cvs add' would simply restore the removed file and increment the revision number.

How can reset ne version number to 1.1?
Where is stored the last number version of  "myfilename"?
thank's for the support

You can't reset the 'myfilename' revision number to 1.1 either because you didn't remove the ',v' file and so the revision can only be set to something larger than the existing versions, or some other file in the same directory was already at 2.x when you added the file.

Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.

reply via email to

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