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

RE: Any simple way to set/get global revision number?

From: Kenneth Goldman <kgoldman_at_us.ibm.com>
Date: Wed, 9 Dec 2009 17:47:33 -0500

Bob Archer <bob.archer_at_amsi.com> wrote on 12/09/2009 05:19:20 PM:

> How about just having some cron job that on every commit it modifies
> your version.h file and commits it assuming version.h wasn't
> commited with the last commit. This time whenever anyone does an
> update they will always get an updated version.h. It might get you there.

I tried this, but you're always one behind and/or you get in an
infinite loop:

1 - modify the file with the current version
2 - commit, which bumps the version
3 - since the version changed, go back to (1)

(Plus, cron isn't portable, nor is svnversion, and it feels like
a hack for something that would be better integrated into svn
just as $Id$ is.)

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

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-12-09 23:48:43 CET

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.