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

Re: Format of LastChangedRevision

From: Thomas Becker <Thomas.Becker_at_Ziemann-Urban.de>
Date: 2004-11-22 11:24:12 CET

I want to display the revision number directly in an about-dialog.
I hoped that there is a format-Parameter so that I could easily include
it in the .res-file (C++).
As it doesn't seem to be, a workaround would be using a string-object
and filter all the not wanted parts of the substitution.

Sean Laurent schrieb:
> On Friday 19 November 2004 09:20 am, Thomas Becker wrote:
>
>>I've included the property svn:keywords for my source code.
>>Substitution of $Rev$ works fine. The only problem is that the format of
>>the substituted string ist $Rev: 123$. Does anyone know how to reformat
>>the string so that the tag will be substituted by the revision number
>>only (without the "$" and the "Rev:")?
>
>
> What do you want to accomplish? The reason I ask is that there are
> alternative techniques that might work for you. For example, look into the
> 'svnversion' command; it outputs "a compact 'version number' for the working
> copy path". For C/C++ development, I use that in my Makefile to create a
> header file with the revision number as a #define. For Java, I dump the
> output to a properties file... YMMV.
>
> -Sean
> ------------------------------
> Everyone has a photographic memory. Some don't have film.
> ------------------------------
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 22 11:27:04 2004

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