On Sep 22, 2008, at 1:40 PM, Andy Levy wrote:
> On Mon, Sep 22, 2008 at 03:53, G. T. Stresen-Reuter
> <tedmasterweb_at_gmail.com> wrote:
>> I'm wondering if someone can recommend a method for updating the
>> ID keyword
>> in a file on every commit.
>
> Keywords are expanded by the client, so there is really no method for
> doing this on the commit
>
>> What I'm looking for is something akin to the "About" dialog in many
>> compiled programs, where they state exactly what version the code is.
>>
>> Since this is exclusively for web applications, I was thinking I
>> could just
>> insert the ID keyword into about.html and it would be updated on
>> every
>> commit. Of course, I quickly discovered that that wouldn't work,
>> but the
>> alternative: touching about.html prior to every commit, seems
>> unworkable.
>>
>> Is there a better way?
>
> See the FAQ: http://subversion.tigris.org/faq.html#version-value-in-
> source
Completely understood. Thanks for the pointer to the FAQ. I suspect
I'll write a generic shell script that wraps svn export and includes
a command to insert the rev number appropriately. I was just hoping
there would be a better way, but this is good enough.
Thanks a bunch!
Gustave Stresen-Reuter
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-22 23:43:40 CEST