You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Benoît Thiébault <th...@artenum.com> on 2009/08/25 16:14:50 UTC

Automaticaly updating revision number

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 ?

Regards,

Benoît

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Automaticaly updating revision number

Posted by Andy Levy <an...@gmail.com>.
2009/8/25 Benoît Thiébault <th...@artenum.com>:
> 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 ?

http://subversion.tigris.org/faq.html#version-value-in-source

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Automaticaly updating revision number

Posted by Blair Zajac <bl...@orcaware.com>.
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
<bl...@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@subversion.tigris.org].


Re: Automatically updating revision number

Posted by Kenneth Goldman <kg...@us.ibm.com>.
The link below is my solution/hack.  It also describes the problems I have
with the FAQ.

If developers are listening, I know that a clean solution is hard, but it
sure would be
better than these non-portable hacks.  And it really is a common
requirements.

IMHO, the variable should be updated at commit time.

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

--
Ken Goldman   kgold@watson.ibm.com
914-784-7646 (863-7646)



                                                                       
             Benoît Thiébault                                      
             <thiebault@artenu                                         
             m.com>                                                     To
                                       users@subversion.tigris.org     
             08/25/2009 12:14                                           cc
             PM                                                        
                                                                   Subject
                                       Automaticaly updating revision  
                                       number                          
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       




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 ?

Regards,

Benoît

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


To unsubscribe from this discussion, e-mail:
[users-unsubscribe@subversion.tigris.org].

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].