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

Re: hint for improved keyword substitution

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: Wed, 19 Mar 2008 12:19:56 +0100

> > but this procedure is going to cause BIG problems, since code CHECKED
> > OUT will build, but code EXPORTED from the repo will not!
> > so I'm firmly convinced this is an issue for svn.
> > furthermore, I don't see any practical use for keyword substitution
> > AS IS, except cosmetic (?) reasons (don't tell me that $REV: nnnn$ is
> > pleasant :)
> >
> >
>
> Of course SCCS, RCS, and CVS (and I'm sure other version control systems) have
> used this method successfully for a very long time...

I too seem to be missing the point. The standard C approach:

char *derive_revision(void)
{
  static char version[20];
  sscanf("$Revision$", "$Revision: %19s", &version);
  return &version;
}

(Note: untested!)

Bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-03-19 12:20:07 CET

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.