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

Re: revision in source code

From: Mark Reibert <svn_at_reibert.com>
Date: Thu, 05 Jun 2008 21:19:22 -0700

On Thu, 2008-06-05 at 08:34 -0400, Andy Levy wrote:
> On Thu, Jun 5, 2008 at 8:11 AM, massimiliano
> <massimiliano.cialdi_at_powersoft.it> wrote:
> > how can "read" the base_dir revision and put in a C string automagically (or
> > through a script)?
>
> http://subversion.tigris.org/faq.html#version-value-in-source

The problem - or at least inconvenience - with svnversion is it requires
a working copy. A build purist prefers to "svn export" a tag and build
from the export. This way the build is of exactly the same source
delivered to the customers/users.

One option is to do something like "svn info <repo_url>/tags/<release>"
and grab the commit or "last changed" revision. Then export, munge the
release and commit revision into the source where needed, and build.

-- 
----------------------
Mark S. Reibert, Ph.D.
svn_at_reibert.com
----------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-06 06:19:51 CEST

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.