[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: Peter Valdemar Mørch <swp5jhu02_at_sneakemail.com>
Date: 2004-10-26 23:00:02 CEST

Garrick Olson Garrick.Olson-at-Aceva.com |Lists| wrote:
> As Peter pointed out later in the thread, the following "works" if you
> parse out the first revision it returns:
>
> svn log -q svn://myhost/myrepos/mybranch
>
> Of course, I place quotes around "works" due to the fact I could have
> 200,000 revisions in my repository, in which case the above command is
> expensive.

Actually, how expensive is this?

lyta:~/> svn log --quiet svn+ssh://cmdev/repos/branches | head -2
------------------------------------------------------------------------
r4728 | hjc | 2004-10-26 14:21:19 +0200 (Tue, 26 Oct 2004)
svn: Can't write to stream: Broken pipe

It seems that the "head" program closes its STDIN, and so terminates the
svn process, so I'm wondering if the potentially long 200.000 rev log
ever gets produced on the server, or if the svnserve process just gets
killed when the pipe and hence the ssh session dies. Does the answer
differ between svn+ssh:// and http:// ?

I'm currently thinking that with "| head -2" it really isn't that
expensive...

Peter

-- 
Peter Valdemar Mørch
http://www.morch.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 26 23:00:33 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.