RE: The value of HEAD
From: Bax, Arjen <ABax_at_AEGON.NL>
Date: 2005-04-08 10:19:57 CEST
Aloha,
To obtain the HEAD revision number, I wrote:
> svn log -rHEAD -q file:///d:/svnrep/mytools | perl -wlne '/^r(\d+)/ and do
To which Ben Collins-Sussman responded:
> I prefer to run 'svn status -u' and just parse the last line.
Agreed, there is more than one way to do it (TIMTOWTDI, as is Perl's motto).
svn log -rHEAD -q | perl -wlne '/^r(\d+)/ and do { print $1; exit }'
omitting the URL.
Have a nice day.
-- Violence is the last refuge of the incompetent - Isaac AsimovReceived on Fri Apr 8 10:22:21 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.