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

Re: Getting HEAD revision number from a URL

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2004-10-24 04:40:08 CEST

On Oct 23, 2004, at 8:25 PM, kfogel@collab.net wrote:

> Scott Palmer <scott.palmer@2connected.org> writes:
>> 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.
>
> Try "svn log -q -rHEAD URL". For example
>
> $ svn log -q -rHEAD http://svn.collab.net/repos/svn/
>
> -----------------------------------------------------------------------
> -
> r11606 | sunny256 | 2004-10-23 19:25:56 -0500 (Sat, 23 Oct 2004)
>
> -----------------------------------------------------------------------
> -
> $

That's a bit painful to parse compared to the output of svnversion.
I'm running on Windows, no perl, no python, no bash, so the simplicity
of the output of svnversion was helpful.

It is also irritating in that if I don't give a URL to the root of the
repository the output may be quite different.

I think that this basic bit of information should be easy to get. Thus
my suggestion to allow a URL argument to svnversion.

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 04:40:39 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.