[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: Cristi BALAN <mental_at_gmail.com>
Date: 2004-10-24 09:21:03 CEST

On Sat, 23 Oct 2004 22:40:08 -0400, Scott Palmer
<scott.palmer@2connected.org> wrote:
> 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.
>

Use unxutils and winbash...
http://unxutils.sourceforge.net/
http://winbash.tigris.org/

-- 
Cristi BALAN
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 24 09:21:24 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.