[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: David Budworth <dbudworth_at_eloan.com>
Date: 2004-10-27 01:22:28 CEST

Just tried it with a URL.

svn log -qvr HEAD http://my/repo | perl -nle 'm/^r(\d+)/ and print $1'

prints out "768" (my head on that repo)

So, just wrap this with a VER=`....` and you have your repo head
version a the time the script executes.

On Oct 26, 2004, at 4:07 PM, Dominic Anello wrote:

> On 2004-10-26 15:22:02 -0700, Krebs, Steven wrote:
>> When I do svn log -q URI I have to have a working copy, I would like
> to
>> query various repositories without having to have a local working
> copy.
>>
>> In my case I have 4 separate repositories (source, eval, deploy and
>> docs). Each over a Gigabyte of data, and I want a script to determine
>> what the current HEAD revision of each is without having a working
> copy.
>>
>> C:\>svn log -q -v HEAD svn://itplab-svnsvr.dp.intel.com/source
>> svn: '.' is not a working copy
> ----8<----
>
> HEAD is a revision keyword, try the following:
> C:\>svn log -q -v -r HEAD svn://itplab-svnsvr.dp.intel.com/source
>
> Your previous command was trying to get a listing of a file called
> C:\HEAD
>
> -Dominic
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 27 01:24:04 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.