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

The Value of HEAD

From: anita kulshreshtha <a_kulshre_at_yahoo.com>
Date: 2005-04-08 16:21:30 CEST

Hi,
     Thanks. I do need it from the client after a
checkout. I could parse the message ""revesion ...".
The revision no. gets stored in the local copy. It
would be nice to get it via proplist/propget.
something like a property called svn:rev-no.......

Thanks
Anita

=======================================================
-> > -> 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? :)

peace
si

                
__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 8 16:25:26 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.