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

Re: rationale for 'svnversion' (vs 'svn version') ?

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-03-28 13:21:08 CEST

Scott Palmer <scott.palmer@2connected.org> writes:

> I would love to have 'svn revsion', particularly if it took a URL to a
> repo,

An URL? That's not got much to do with the current svnversion.

> I would like to use something like it in our build process.
> Our builds need to do multiple checkouts or exports from the same
> repository. I would prefer that they all come from the same revision.
> So an easy way to get *just* the head revision would be very useful.

That's easy:

$ svn log -qrhead http://svn.collab.net/repos/svn | awk '/^r/{print $1}'

> I develop and build on Windows so the shell and scripting is crippled
> - I will not install 3rd party shells and add yet another
> configuration step to an already complicated setup for our developers.

Without some scripting you are left with:

$ svn log -qrhead http://svn.collab.net/repos/svn
r13716 | david | 2005-03-27 21:17:47 +0100 (Sun, 27 Mar 2005)

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 28 13:22:26 2005

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.