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

Getting HEAD revision number from a URL

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2004-10-24 02:57:37 CEST

I see a command 'svnversion' which does exactly what I want, but it
needs a working copy.

I want to get the revision number of the HEAD of the repository from
the repository's URL.

Here's the reason. I want my build system to 'export' the HEAD
revision and build it. If the build is successful, I want to record
what revision it was built from. I may need to do more than one
'export' to get all the projects that I need, and I want to make sure
that I get each project from the same revision. So first I want to
query the repository to find the head revision number, then specify
that revision when I export each project. That way people can continue
committing between exports. Since subversion doesn't have the concept
of 'shared' projects I can't put all the projects under a common root
so I can do only one export, even if I could I can't get the revision
number from the export.

I don't want to build from a working copy in this case because I want
it to be impossible to commit from the copy that the build is done
from. And an export goes a bit faster and takes less space too, since
it doesn't need to handle the .svn folders that working copies have.

Why is there no simple way to query the repository for the head
revision?

If it can't already be done, I propose that svnversion be extended to
take a URL or a path. When given a URL there should be a flag to make
it return the revision in which that URL was last modified instead of
the HEAD revision number.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 24 02:58:10 2004

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.