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

Re: Global Revision keyword, again and again

From: James FitzGibbon <jfitzgibbon_at_primustel.ca>
Date: 2005-07-30 16:24:44 CEST

On Jul-30-05, at 8:39 AM, Florian Weimer wrote:

>> Is there some reason that the 'static char rcsid[] = "$Id$' method
>> won't do what is being asked for here?
> Doesn't work for header files, and I doubt there is an efficient way
> to display the version numbers in something like an About box.

You can do a two-pass build where you build the binary, run ident (or
grep for headers) to dump that into another file that defines a
static string and re-build with that file included. Then you refer
to that large string in an about box. Ug.

Merant Configuration Builder has a feature where it can embed
information about how a binary was created (or an object file or
library) when it builds it. It basically sticks a block of metadata
at the end of the binary, where the OS will ignore it. I believe
that if you link against the correct library, you can get that info
back at runtime.

Of course, the metadata includes how it was built in addition to the
revision of the source file (it integrated with PVCS), so this isn't
really something that svn can take on.

I think that the solution to this is so varied based upon the type of
application, programming language, build environment and runtime
environment that to try to solve it in svn is a pointless exercise.

James FitzGibbon
Systems Developer, Primus Telecommunications Canada
This electronic message contains information from Primus Telecommunications
Canada Inc. ("PRIMUS") , which may be legally privileged and confidential.
The information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us by telephone or e-mail (to the number or address above)
immediately. Any views, opinions or advice expressed in this electronic
message are not necessarily the views, opinions or advice of PRIMUS.
It is the responsibility of the recipient to ensure that
any attachments are virus free and PRIMUS bears no responsibility
for any loss or damage arising in any way from the use
thereof.The term "PRIMUS" includes its affiliates.
Pour la version en franšais de ce message, veuillez voir
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jul 30 16:26:31 2005

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.