I wrote:
>> If you replace "$WCREV$" with "7777", then you can use it in a #define.
>> But if you replace it with "$WCREV: 777$", then the define is not a
>> number but a string, which you'd have to parse and convert it into a
>> number first before you can use it somewhere else.
>
> That's the sacrifice you have to make if you want to keep both the
> attribute tag and the revision information (whatever) in the file at
> the same time.
>
> I think the Subversion folks might have chosen a bad replacement
> algorithm since it's not compatible with #defines, but I think they're
> at least right with the "keep everything in one file" style..
Actually, it might not be right for SubWCRev, since it's field of
application is not to pull files in/out of SCM, but to produce
intermediate files that are suitable for automated build processes.
Realizing stuff as I go along :-)..
>> The colon is standard C/C++ syntax. So it's not something we just invented.
>>
>> I think SubWCRev.exe should keep working the way it does now. Otherwise
>> we couldn't even use it anymore in TSVN for the build process without
>> writing scripts to parse those strings instead of clean numbers.
Is this sentence out of context? If by "keep working the way it does"
you mean "keep replacing the entire word instead of doing keywords the
Subversion way", I think you're right. Sorry if I misunderstood you.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Apr 9 19:43:17 2005