RE: Getting HEAD revision number from a URL
From: Peter Yamamoto <peter.yamamoto_at_page44.com>
Date: 2004-10-30 01:13:50 CEST
LOL I wasn't measuring length... I was responding to a user who said
Peter
-----Original Message-----
On Fri, 29 Oct 2004 11:07:41 -0700, "Peter Yamamoto"
> Change the ' to ", and the internal " to \"...
> HeadRev=$ 1\""
Sure, but then it's longer than my previous post.
"/^r(\d+)/&&print\"set HeadRev=$1\"" # Yours
In fact, when I'm not Perl-golfing but doing one-liners for real, I
perl -e "/^r(\d+)/ && print qq(set HeadRev=$1)"
etc.
/L/e/k/t/u
---------------------------------------------------------------------
|
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.