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

build a revision (was: Re: versioning rant)

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-02-24 02:11:16 CET

On Sat, Feb 23, 2002 at 10:49:08PM -0000, Barry Scott wrote:
> Using SourceSafe we solve this problem of a unique number for a build as follows:
>
> checkout build_version.dat and check back in forcing a new revision.
> Ask SourceSafe what the revision number is.
> Use the revision number to create a unique label. SRC_0020 say.
> Then we fetch the source at that label and build it.
>
> I'm assuming we can do the same process with subversion.

Subversion has a single, global revision number. Just ask for that number
and use it for your build. For example:

rev="`svn stat -u README | awk '/^Head/ { print $3 }'`"
svn up -r $rev

Depending on your setup, you might also do that last step as:

svn co REPOS_URL -r $rev -d build-tmp

The basic point is, that you can ask for the head revision, then update or
checkout a working copy for that revision. There isn't a need to create
labels or anything.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:09 2006

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.