[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-04-07 19:04:01 CEST

On Apr 7, 2005, at 2:49 AM, Bax, Arjen wrote:

> Anita writes:
>
> > > -> How can I read the value of HEAD in a variable? I
> > > -> am calling svn using  executable="svn"....
>
> Is this of any help?
>
> svn log -rHEAD -q file:///d:/svnrep/mytools | perl -wlne '/^r(\d+)/
> and do { print $1; exit }'
>

I prefer to run 'svn status -u' and just parse the last line.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 7 19:08:50 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.