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

Re: Automaticaly updating revision number

From: Blair Zajac <blair_at_orcaware.com>
Date: Tue, 25 Aug 2009 09:28:13 -0700

On Aug 25, 2009, at 9:14 AM, Benoît Thiébault wrote:

> Dear List,
>
> I am developping an application and I would like to display the SVN
> revision number in an "About" dialog.
> I have created a property file containing the $Revision$ keyword and
> added the property so that SVN automatically expends the tag with the
> revision number.
> However, SVN only updates the revision number when I commit the
> property file... Which doesn't change...
> Is there a way to force svn to always commit this file in order to
> keep the revision up to date ?
> Or is there a better way to achieve my goal ?

Use the svnversion tool that comes with Subversion to crawl the
working copy and put a revision number into a build generated file
that is included in the compile.

Regards,
Blair

-- 
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<blair_at_orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2387218
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-27 00:05:38 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.