info-cvs
[Top][All Lists]
Advanced

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

Re: Make the version number as 10 by default


From: Todd Denniston
Subject: Re: Make the version number as 10 by default
Date: Mon, 16 Jul 2007 10:17:07 -0500
User-agent: Thunderbird 1.5.0.12 (X11/20070509)

Sundeep wrote:
Here is my requirement...

I created 2 files for project A on main with versions 10.1 (through -r
tag of commit).

Then I checked out the project and added another new file to it.
I tagged the branch with name 'x'.
To tag I gave
cvs ci 'new_file.java' -r x

but this creates the version of the new file as 1.1... But as per our
company standards, all files must be starting from 10.x...

If i give -r 10 then that file is getting added to main branch and to
sub-branch, x. Which means anyone else creating another branch from
main will have that file, which I do not need. The file is specific to
this branch (and its sub branches).

Checking in the file with -r <br_name> does create the file on main
but in dead state... and in Attic directory. This is good but only
problem is the version number, which must be starting with 10.

Is there any way where we can configure the value  (other than in -r
option of cvs ).


<grumpy>
Curious, do you work with "Sumanth M" <address@hidden>?
BTW his email addy, is broken, I hope yours is real. Please use real (even real for groups only gmail) email accounts, or put @this.domain.does.not.exist .
</grumpy>

The answer is, you do NOT want to mess with the revision numbers, they are for CVS to do book keeping.

You want to learn to use tags, i.e., `cvs tag` or `cvs rtag`.

http://ximbiot.com/cvs/wiki/index.php?title=CVS_FAQ#Is_there_a_way_to_change_the_versions_of_files_to_2.X.3F

BTW this question is a user question, not a bug. please keep user questions on the address@hidden list.

--
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]