]> i-scream Git - www.i-scream.org.git/commitdiff
A fix for version numbers with more than two parts - ie. branches (1.2.1.2)
authorTim Bishop <tim@bishnet.net>
Tue, 5 Feb 2002 14:03:08 +0000 (14:03 +0000)
committerTim Bishop <tim@bishnet.net>
Tue, 5 Feb 2002 14:03:08 +0000 (14:03 +0000)
cgi-bin/cvslog.cgi

index ae9bf20709ace11b917bf54314004f4e0a3bbff4..c9c2bc70ef5bc55351c4215fb022720ec4cc9fbc 100755 (executable)
@@ -84,7 +84,7 @@ print <<"END";
 <h2>$heading</h2>
 END
 
-print `$updatecmd`;
+print `$updatecmd >/dev/null 2>&1`;
 
 my(@modules) = split (/\s+/, $modulelist);
 
@@ -124,11 +124,11 @@ foreach my $module (@modules) {
                 print "<a href=\"/cgi-bin/cvs/viewcvs.cgi/$file\" style=\"text-decoration: none;\">";
                 print HTML_encode($file);
                 print "</a> ";
-                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 "(<a href=\"/cgi-bin/cvs/viewcvs.cgi/$file$diff\" style=\"text-decoration: none;\">";
                         print HTML_encode("$1.$2");