RE: Getting HEAD revision number from a URL
From: Krebs, Steven <steven.krebs_at_intel.com>
Date: 2004-10-27 01:52:44 CEST
FYI: here is my final solution (for svn client on WinXP with PERL):
svn log -q -v -rHEAD <URI> | perl -nle "if(m/^r(\d+)/){~s/^r(\d+).*/set HeadRev=$1/;print;}"
I pipe the output to a batch script and run the script to set HeadRev=##
Thanks again to all who responded.
Steve
On 2004-10-26 16:34:00 -0700, Krebs, Steven wrote:
>Thanks to all for the help. I resolved my own issue of not having the -r before HEAD... Works great now. David, I like your perl script as it is a little neater (shorter) than mine.
>Steve
>On 2004-10-26 15:28:02 -0700, Krebs, Steven wrote:
>>Never mind, I see I need a -r before HEAD in the below cmds... I just copied and pasted from Peter's e-mail without
>>Peter Valdemar Mørch writes:
>> On 2004-10-26 15:22:02 -0700, Krebs, Steven wrote:
---------------------------------------------------------------------
---------------------------------------------------------------------
|
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.