[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: C# AssemblyInfo integration

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Fri, 28 Aug 2009 15:15:43 -0500

On Aug 28, 2009, at 11:45, Yves Goergen wrote:

> On 28.08.2009 08:11 CE(S)T, Yves Goergen wrote:
>
>> No, the "$Revision$" is of course not in effective source code as it
>> would be totally in the way there. It's just in a // comment line
>> so the
>> compiler won't ever see that information. My script just tries to
>> grab
>> it from that line and copy the bare number into the active code
>> line so
>> that it can compile. The repository always has the version number
>> "x.x.x.0" in that place, so if you won't use the script, you just
>> won't
>> have the revision number in the code, that's all.
>
> Hm, as I had to find out today, it doesn't quite work. The file
> AssemblyInfo.cs is actually never changed an so the keyword
> substitution
> is never updated. So it is stuck on some revision from the past.
>
> Is that by intent that keywords are not updated if the file didn't
> change?

Yes!

> How is something like $Revision$ meant to be useful if it
> doesn't reflect the revision?!

$Revision$ is the last changed revision of that file. It says nothing
about the last changed revision of any other part of the working copy.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2388380

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-28 22:16:41 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.