Newer gcc swallow version control keywords
Shachar Shemesh
shachar at shemesh.biz
Fri Oct 21 14:29:56 IST 2011
On 10/18/2011 12:50 PM, Oleg Goldshmidt wrote:
>> I understood that, and it's still unstable. Since if some young team member
>> not aware of the $Id: trick, will write:
>> log("$Id: %d $Name: %s\n",id,name)
>> ident will return garbage.
> Someone may alter keyword expansions just before the build, too.
>
>> If you have documented way to get the ident strings, it's more stable.
> The whole point is to have these strings everywhere, otherwise they
> are not very useful. This means the whole development team is aware of
> and uses the convention.
>
I understand why these keywords were useful for CVS/RCS, where each file
had its own version number. When working with SVN, however, a single
number uniquely identifies the entire source tree. Why not have that one
number and get it done with?
Shachar
--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20111021/a8e68e5b/attachment.html>
More information about the Linux-il
mailing list