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

Re: Patching file before commit

From: Max Bowsher <maxb_at_ukf.net>
Date: 2003-06-29 12:52:08 CEST

Helge Jung wrote:
> Hello world,
>
> I've already searched through the svnbook but I didn't find anything
> which could help me with my problem:
>
> In my project I've a file called version.txt in which there's only the
> version number of my project (so the program knows it's revision number
> by reading this file). All what I want is that when someone commits
> something this file is updated with the new revision number. In the
> hooks there was one making it possible to change files but a) there was
> also a warning not to do so and b) the version.txt is never
> touched/changed by a user/developer - it should only be changed by the
> system.
>
> Has someone a hint and/or solution for me?

Maybe you could generate version.txt from `svnversion .` as part of your
build process.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 29 12:53:08 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.