[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: Dominic Anello <danello_at_danky.com>
Date: 2004-10-24 08:13:14 CEST

On 2004-10-23 20:57:37 -0400, Scott Palmer wrote:
> 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.

This is a little clunky, but you can try this:

[danello ~]$ svn log -q -rHEAD http://localhost/svn | grep '^r' \
  | cut -f 1 -d ' '
r29

  • application/pgp-signature attachment: stored
Received on Sun Oct 24 08:11:28 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.