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

Re: script to put svn revision number in c source file

From: jalal <the_jalal_at_fastmail.fm>
Date: 2004-03-29 11:33:59 CEST

On Mon 29 March 2004 11:19, Sean Moss-Pultz wrote:
> On Mar 29, 2004, at 5:11 PM, jalal wrote:
> > Won't svn:keywords work for you???
>
> I think it will. My question is really "how" to implement this and from
> where. For example, should it be in a post-commit hook or done on the
> client side, etc...?
>
> The post-commit hook seems troubling for me because if a client wanted
> to do a diff immediately after a commit there would not have the same
> file content as the server.
>

Hmm, I think it is already implemented. By including the '$Rev$' tag in a file
that is under svn and having keywords turned on for that file, the $Rev$ tag
will be replaced by the revision number.
Assuming I've understood what you want... :)

jalal

-- 
GPG fingerprint = 3D45 5509 D380 26A4 523E  A9D8 A66A 5F38 CA43 BB0E
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 29 11:38:48 2004

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.