Sachin Patil wrote:
> Hi,
> I use SVN for managing a C++ project.
> Is there some way to find the current revision number automatically from
> within a version controlled file so that when I build an executable, I
> should be able to display the version number for that executable.
> This is somewhat similar to the keyword substitution |for $Revision$ in
> CVS.
>
> I have read the bean-book and did not find any information regarding
> this. Did I miss something?
You can do keyword substitution using subversion including $Revision$
see
<http://svnbook.red-bean.com/nightly/en/svn.advanced.props.html#svn.advanced.props.special.keywords>
but the $Revision$ keyword in subversion expands to be the last revision
in which that particular file changed, which may or may not be what you
want see <http://subversion.tigris.org/faq.html#version-value-in-source>
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 23 00:38:42 2005