info-cvs
[Top][All Lists]
Advanced

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

Re: keywords for branches and tags


From: Glenn Franxman
Subject: Re: keywords for branches and tags
Date: Tue, 15 Feb 2005 18:17:55 -0500

Thanks Jim!     
      I searched through the archives and found a lot of other posts
covering the same problem.    I did eventually find the needle in the
haystack, so I thought I'd post it here to improve the
problem:solution ratio.

It turns out that the $Name$ tag is treated special.    It gets
expanded when the command is export, but not for checkout or update.

In retrospect this makes some sense, in so far as it might be
ambiguous when merging past changes from one branch into another, or
have made changes to the file in question.

By only doing it on the export, it knows that the file is _supposed_
to be treated as a final snapshot of the file against which no
additional changes/development should occur.

Using "name" as the keyword for exported tag is a little
misleading/non-intuitive, but hey, this is cvs.   What else is new?   
;-)
 


On Tue, 15 Feb 2005 10:03:33 -0500, Jim.Hyslop <address@hidden> wrote:
> Glenn Franxman wrote:
> > Please excuse the n00b question.  I'd like to have some sort of text
> > inserted into my source code upon checkout, much like the $id: $ and
> > other tags, but would contain the branch id or latest tag.
> $Name$ seems to come the closest:
> 
> https://www.cvshome.org/docs/manual/cvs-1.11.19/cvs_12.html#SEC97
> 
> --
> Jim Hyslop
> Senior Software Designer
> Leitch Technology International Inc. ( http://www.leitch.com )
> Columnist, C/C++ Users Journal ( http://www.cuj.com/experts )
> 
>




reply via email to

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