From: Tim Bishop Date: Tue, 5 Feb 2002 14:03:08 +0000 (+0000) Subject: A fix for version numbers with more than two parts - ie. branches (1.2.1.2) X-Git-Tag: PRE_WWW_REDESIGN~80 X-Git-Url: http://git.i-scream.org/?a=commitdiff_plain;h=c6322fa06f1634cce644693f65d15ddaf136ad78;p=www.i-scream.org.git A fix for version numbers with more than two parts - ie. branches (1.2.1.2) --- diff --git a/cgi-bin/cvslog.cgi b/cgi-bin/cvslog.cgi index ae9bf20..c9c2bc7 100755 --- a/cgi-bin/cvslog.cgi +++ b/cgi-bin/cvslog.cgi @@ -84,7 +84,7 @@ print <<"END";

$heading

END -print `$updatecmd`; +print `$updatecmd >/dev/null 2>&1`; my(@modules) = split (/\s+/, $modulelist); @@ -124,11 +124,11 @@ foreach my $module (@modules) { print ""; print HTML_encode($file); print " "; - if($rest =~ /\((\d+).(\d+)(.*)\)/) { + if($rest =~ /\((\S+)\.(\d+)(.*)\)/) { my $newrev = "$1.$2"; my $oldminver = $2-1; my $oldrev = "$1.$oldminver"; - if(!($1==1 && $2==1)) { + if($2 != 1) { my $diff = ".diff?r1=$oldrev&r2=$newrev"; print "("; print HTML_encode("$1.$2");