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

RE: The value of HEAD

From: McKenna, Simon (RGH) <Simon.McKenna_at_rgh.sa.gov.au>
Date: 2005-04-07 04:21:14 CEST

Hi Steve,

-> > -> How can I read the value of HEAD in a variable? I
-> > -> am calling svn using executable="svn"....
-> >
-> > svnlook help youngest
-> That only works on the server. I believe Anita needs this
-> from the client.

From the book:

HEAD The latest revision in the repository.

So isn't a trip to the server needed regardless?

From the client you could call:
svn log URL -r HEAD -q

and parse revision out from the result.

Or perhaps this might be easier to consume from ant:
svn log URL -r HEAD -q --xml

All bases covered now? :)


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 7 04:23:38 2005

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.