[Top][All Lists]

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

Re: $Name$ Keyword does not expand

From: Mike Kistler
Subject: Re: $Name$ Keyword does not expand
Date: Tue, 7 Jun 2005 11:08:36 -0500


I found the post below in the info-cvs archives from April of 2001.  Can anyone tell me if this issue has been fixed?  I have just run into this problem (using a somewhat backlevel version of cvs ... 1.11.2).  In my opinion, if cvs doesn't substitute for $Name when the tag used is a branch, then this is just flat broken.  Why would it not be?  The documentation for $Name is pretty clear:

Name:  the tag that was used to retrieve the file.

So please tell me that this is already fixed, and I just need to move to a newer version of cvs.  Thanks!

> David D. Hagood wrote:
> > Markus Grunwald wrote:
> >
> > Hi there !
> > I would like to use the $Name$ Keyword in my java source. To do this, I added the line:
> >
> > public final static String cvsRelease = new String("$Name$");
> >
> > to my source. Then, I tagged it "prerelease-1_0". To get the substitution, I executed
> >
> > cvs -d ":pserver:address@hidden:/usr/local/cvsroot" checkout -r prerelease-1_0 UserAccount
> >
> > but the line just expanded to
> >
> > public final static String cvsRelease = new String("$Name:  $");
> >
> > I thought, there should stand "$Name: prerelease-1_0$" ??? Other tags ($id$...) work just fine.
> >
> > The log says, the tag is there:
> >
> Is prerelease-1_0 a branch or a leaf? If is is a branch, then it won't get expanded (I've complained
> about this behavior before in this discussion, look for my previous posts).

Mike Kistler
reply via email to

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