--- cdn/www/sources.html 2003/02/28 13:44:52 1.144 +++ cdn/www/sources.html 2003/03/12 19:48:48 1.167 @@ -15,11 +15,12 @@ cvs -d :pserver:guest@mozdev.org:/cvs co - + '; + +$i = 0; + +while($contents[$i]) +{ + +// echo $contents[$i]; // . "\n"; + +++$i; + +} + +echo ''; + +// /debug + // preprocess Tag: stuff would be here if it didn't mess // things up completely @@ -87,7 +107,8 @@ cvs -d :pserver:guest@mozdev.org:/cvs co if($len) { print '

change style to default |' . "\n"; - print 'change style to bonsai

' . "\n"; + print 'change style to bonsai

' . "\n"; print '
' . "\n"; print '
Who
' . "\n"; @@ -155,6 +176,10 @@ cvs -d :pserver:guest@mozdev.org:/cvs co $checkins = eregi_replace("((https|http|mailto|ftp):\/\/[^[:space:]<>]{1,})", "\\1", htmlspecialchars($contents[$l])); + $checkins = eregi_replace("(bug[\ ]+[#%]?[0-9]{1,})", "\\1",$checkins); + + $checkins = eregi_replace('"bug[\ ]+[#%]?', '"http://' . HOST . '/bugs/show_bug.cgi?id=', $checkins); + // ' Added: www/img background.png' // ' Modified: www cdn.css' // ' Removed: www/protected sources.html' @@ -167,15 +192,23 @@ cvs -d :pserver:guest@mozdev.org:/cvs co } if ( ereg("^[[:space:]]{1,3}((Added|Modified|Removed):)", $checkins) || ereg("^[[:space:]]{9}", $checkins) || - strstr($checkins, "New directory") + strstr($checkins, "New directory") || ereg("^[[:space:]]{1,3}N\ ", $checkins) ) { - if ( !strstr($checkins, "New directory") ) { + if ( !strstr($checkins, "New directory") && !ereg("^[[:space:]]{1,3}N\ ", $checkins) ) { $identifier = trim(substr($checkins, 0, 15)); // may change to   group $checkins = substr($checkins, 15); - $_New_directory = false; + $_New_directory = false; $_N = false; + } + elseif ( ereg("^[[:space:]]{1,3}N\ ", $checkins) ) { + + $webcvs = 'http://www.' . HOST . '/source/browse'; + + unset($identifier); + + $_N = true; } else { $checkins = str_replace('- New directory', '-_New_directory', $checkins); @@ -217,7 +250,7 @@ cvs -d :pserver:guest@mozdev.org:/cvs co for($y=0; $y < $Y; ++$y) { if ( ereg('Tag:', $checkinsA[$y]) || ereg('Tag:', $checkinsA[$y-1]) || $_tag || - strstr($checkinsA[$y], '-_New_directory') + strstr($checkinsA[$y], '-_New_directory') || $checkinsA[$y] == 'N' ) $TAG = true; else @@ -246,6 +279,9 @@ cvs -d :pserver:guest@mozdev.org:/cvs co $checkins .= ''; // $project / $_path $_webcvs = str_replace('http://www.' . HOST . '/source/browse/', '', $webcvs); + if ( $_webcvs == $webcvs ) + unset($_webcvs); + if ( strlen($_webcvs) > 15 ) $checkins .= substr($_webcvs, 0, 12) . '...' . substr($_webcvs, strrpos($_webcvs, '/')); else @@ -259,7 +295,10 @@ cvs -d :pserver:guest@mozdev.org:/cvs co $checkinsA[$y] = str_replace('-_New_directory', '- New directory', $checkinsA[$y]); - $checkins .= $checkinsA[$y]; + if ( $_N ) + $checkins .= substr($checkinsA[$y], 0, 12) . '...' . substr($_webcvs, strrpos($checkinsA[$y], '/')); + else + $checkins .= $checkinsA[$y]; if (ereg("Tag\:$", trim($checkinsA[$y])) && empty($checkinsA[$y+1])) @@ -285,6 +324,7 @@ cvs -d :pserver:guest@mozdev.org:/cvs co } $checkins = trim( str_replace(' ', ' ', $checkins) ); + $checkins = str_replace('/./', '/', $checkins); if ( !ereg('^'; -include('annotate_1_47'); +include(NOTES); ?>