From: Pedro Lamarão (pedro.lamarao_at_[hidden])
Date: 2006-05-11 15:22:38
Ralf W. Grosse-Kunstleve escreveu:
> SVN maintains a global revision number. Does anyone know a good way of making
> this number available via a header file (e.g. boost/svn_revision_stable.hpp)?
> I.e. each time any file in the stable branch changes the header file should
> automatically be updated.
The keyword $Revision$ can substitute in a file the revision of the last
commit to that file. But that number won't change on commits to other files.
A tool is available, WCSubRev.exe, that reads the Subversion status of
all files in a working copy (excluding externals), and can substitute in
a file the revision of the last commit (among other things). It is
usually called in build scripts while making a (tag for) release.
-- Pedro Lamarão Desenvolvimento Intersix Technologies S.A. SP: (55 11 3803-9300) RJ: (55 21 3852-3240) www.intersix.com.br Your Security is our Business
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk