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

Re: showing revision number in source code

From: Patrick Ben Koetter <p_at_state-of-mind.de>
Date: 2005-02-08 13:59:00 CET

* Zouari Fourat <fourat@gmail.com>:
> Hello,
> I would like to show a dynamic revision number in my 'export'ed source
> codes (PHP)
> I used to do this in CVS :
>
> /**
> * @version CVS: $Id:$
> */
>
> is there anyway to do that with svn ?

$ svn propset svn:keywords "Id" <yourfilename>

Edit <filename> and add:

/**
* @version $Id$
*/

$ svn ci <yourfilename>

Take a look at <yourfilename>.

p@rick

-- 
Patrick Koetter            Tel: 089 45227227
Echinger Strasse 3         Fax: 089 45227226
85386 Eching-Dietersheim   Mail: p@state-of-mind.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 8 14:01:32 2005

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.