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

Re: How to have a version file in the wc?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-07-09 14:57:36 CEST

Philip Martin <philip@codematters.co.uk> writes:

> pmarek@users.sourceforge.net writes:
> > I created a file with contents "$Rev$", set svn:keywords, committed.
> > -> it gets "$Rev: 0 $".
> That's not right, it should contain the revision of the commit and
> that cannot be zero. I cannot reproduce your problem.

This bug was fixed post-0.24.2.

pmarek: there is no way to automatically have subversion put the HEAD
revnum into a file. And I really don't understand why you'd want to
do it. Even if it were possible, at one moment it might say "rev 423"
and the next moment it might say "rev 424", but who knows what that
means? The file is probably identical in both revisions anyway.

You have two choices:

  1. use a real release number, like we do. manually type a release
     number into a version.h header, and increase it every once in a
     while, when you're ready. the release number has nothing to do
     with the global revision number; it has to do with the software's

  2. have your build system insert the value of `svnversion` into a
     script or header file. this is what we do when we build the svn

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 9 14:59:53 2003

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.