info-cvs
[Top][All Lists]
Advanced

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

Re: Automatically have winCVS place version string in code.


From: Greg A. Woods
Subject: Re: Automatically have winCVS place version string in code.
Date: Fri, 17 May 2002 11:25:14 -0400 (EDT)

[ On Friday, May 17, 2002 at 16:14:25 (+0500), Muhammad Shakeel wrote: ]
> Subject: Re: Automatically have winCVS place version string in code.
>
> You mean the $Name keyward can be assigned to a string. Therefor the 
> value will be assigned to that variable which can be used later on to 
> find the version.

Yes, just like the manual says....

> In this case it will be necessary for a developer to 
> first insert tag, cvs update  and build the binary.

You can't use it if it's not there!  ;-)

> But some times developers build a application/library after checking out 
> the code from HEAD. so in this case the no tag information is there.

Those developers should learn to respect project policy.

(and if the policy allows distributing products built from untagged
sources then the policy needs fixing!  :-)

> In 
> this case can we find automatically from the CVS the 'Date and time' of 
> the code was checked out from HEAD ?

Using '-D' to select revisions can be quite unreliable.

> Also the Branch tag value do not come in $Name keyword.

Indeed -- $Name is only intended for release tags.

Your tag name composition conventions should make it possible to
algorithmically derive the branch tag name from a release tag name if
you're using branches for creating and maintaining releases.

-- 
                                                                Greg A. Woods

+1 416 218-0098;  <address@hidden>;  <address@hidden>;  <address@hidden>
Planix, Inc. <address@hidden>; VE3TCP; Secrets of the Weird <address@hidden>



reply via email to

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