From dd649d3194c4a568582d07812ecd211319e4d886 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 29 Mar 2012 01:32:30 +0000 Subject: [PATCH] further optimization of parameter parsing svn path=/trunk/; revision=41 --- Subversion.page | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Subversion.page b/Subversion.page index adc89b8..6592ddb 100755 --- a/Subversion.page +++ b/Subversion.page @@ -1,7 +1,8 @@ #!/bin/zsh url="$(sed -rn 's:\+: :g;s:%:\\x:g;s:^(.*&)?i=([^&]+)(&.*)?$:\2:p' <<<"${QUERY_STRING}")" url="$(echo -e "${url}" |sed -rn '1{s:\t: :g;s:\r::g;s:\\:\\\\:g;p}')" -rev="$(sed -rn '/^(.*&)?r=([0-9]+)(&.*)?$/{s:^(.*&)?r=([0-9]+)(&.*)?$:\2:;s:\+: :g;s:%:\\x:g;p}' <<<"${QUERY_STRING}")" +rev="$(sed -rn 's:\+: :g;s:%:\\x:g;s:^(.*&)?r=([0-9]+)(&.*)?$:\2:p' <<<"${QUERY_STRING}")" +#rev="$(sed -rn '/^(.*&)?r=([0-9]+)(&.*)?$/{s:^(.*&)?r=([0-9]+)(&.*)?$:\2:;s:\+: :g;s:%:\\x:g;p}' <<<"${QUERY_STRING}")" baseuri=$(sed -rn 's:^svnRepo=(.*)$:\1:p' project.meta) lastrev=$(svn info "$baseuri" |sed -rn 's;^Revision: *([0-9]+);\1;p') @@ -16,7 +17,7 @@ cat </$(basename "$tmp") " tmp=$(dirname "$tmp")/ done |tac) -
+

Revisions:

$(for i in {1.."$lastrev"}; do echo "$i" -- 2.39.2