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

Best practice for getting most recent revision number?

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

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 21:19:06 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.