RE: Any simple way to set/get global revision number?
From: Bob Archer <bob.archer_at_amsi.com>
Date: Wed, 9 Dec 2009 18:06:18 -0500
> Bob Archer <bob.archer_at_amsi.com> wrote on 12/09/2009 05:19:20 PM:
But, the version didn't really change. When I do an update version.h will have the rev it was updated in it. Right? I think even if you use svnversion it will put the last rev that file was changed... not the rev number of HEAD, which I think is what it sounds like what you want.
The infinite loop is avoided because you ignore the version.h file. We have several files that our build commits and we have cc.net set to ignore those files in the build triggers.
>
You don't need cron to be portable... you only need the cron job to run on one machine, like your svn server which makes sure that version.h is committed into ever rev... if it is not you immediately commit it. The chance that someone will do a get or update from the rev that did have a commited version.h is pretty slim.
But, $Id$ and $Rev$ work exactly the same way.
BOb
------------------------------------------------------
Please start new threads on the <users_at_subversion.apache.org> mailing list.
|
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.