|
|
Choosing A Webhost: |
Re: CVS update: MODIFIED: src ...: msg#00129version-control.cvs.bugs
In <mailman.1228.1043988630.21513.bug-cvs@xxxxxxx> Derek Robert Price <derek@xxxxxxxxxxx> writes: >I just checked in some tests for the behavior of the $Name$ keyword. >This is what I noticed: > 1. Updates and checkouts of branches do not set the $Name$ keyword. > The doc specifies that $Name$ will be substituted with the > symbolic name used to check out the revision. It does not specify > tags and not branches. Ditto for the RCS doc. > 2. Checkouts from static tags always set $Name$. >Comments? Just that I agree with you. You can make a case that $Name$ should be expanded only on release tags because only a release tag gives unambiguous information as to what is being built. Personally, I'd rather have the information on branch tags as well; if I misuse it, that would be my problem. > 3. Updates only set $Name$ when the files are otherwise updated. > i.e. cvs up -A; cvs up -rtag will not set any $Name$ keywords if > tag specifies the trunk of the tree. We could call this, "as > documented", since the doc specifies that the $Name$ keyword is > updated on "checkout", but this does not seem optimal to me. > After all, cvs up -k* updates the keywords in every file > regardless of other file status. Why shouldn't $Name$ be updated? Did you try "update -p" ? I don't remember how it goes, but I think that "cvs update -p dummyfile > dummyfile" expands the keyword. It will of course clobber any sandbox changes in dummyfile, so the use case would be to keep dummyfile around just for its Name keyword, so the built executable is able to identify itself.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVSBookmarks and upstream submission, Christian Reis |
|---|---|
| Next by Date: | Re: CVSBookmarks and upstream submission, Pierre Asselin |
| Previous by Thread: | Re: CVS update: MODIFIED: src ..., Derek Robert Price |
| Next by Thread: | New Policy JFG, Fire Chaplain McCutcheon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |