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

Re: Best practice for getting most recent revision number?

From: Kylo Ginsberg <kylo.ginsberg_at_gmail.com>
Date: 2007-07-24 22:19:22 CEST

Good point. I was asking client-side, where there's no equivalent AFAIK.

On 7/24/07, Josh Blair <josh.blair@gmail.com> wrote:
>
> If you are on the server side (as in a hook script), you can use:
>
> svnlook youngest c:\svn\repos
>
> --
> Josh Blair
> Golden, CO
>
> On 7/24/07, Kylo Ginsberg <kylo.ginsberg@gmail.com> wrote:
> >
> > Right now I do this in a script like so:
> > rev=`svn log $SVNROOT -q -r HEAD | grep "^r" | cut -f 1 -d" " | cut
> > -c2-`
> >
> > Works fine, but a little clunky, not to mention dependent on the format
> > of log output. Is there a better way?
> >
> > Thanks
> > Kylo
> >
>
>
>
>
Received on Tue Jul 24 22:18:23 2007

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.