version 1.75, 2003/02/21 19:07:36
|
version 1.95, 2003/02/22 11:35:50
|
Line 29 cvs -d :pserver:guest@mozdev.org:/cvs co
|
Line 29 cvs -d :pserver:guest@mozdev.org:/cvs co
|
|
|
$today = date("y/m/d"); |
$today = date("y/m/d"); |
$day = (int)date('d'); |
$day = (int)date('d'); |
--$day; | --$day; // --$day; |
$yesterday = date("y/m/" . sprintf('%2u', $day)); |
$yesterday = date("y/m/" . sprintf('%2u', $day)); |
$commit_log = "cvs@$project.mozdev.org"; |
$commit_log = "cvs@$project.mozdev.org"; |
|
|
// $today = '03/02/14'; | // $today = '03/02/14'; |
|
|
if(!$local_conf_commits) |
if(!$local_conf_commits) |
print '<span id="CVS-local-conf-commits">' . $local_conf_commits_msg . "</span>\n"; |
print '<span id="CVS-local-conf-commits">' . $local_conf_commits_msg . "</span>\n"; |
|
|
//BEGIN BLOCK |
//BEGIN BLOCK |
if(file_exists(COMMIT_PATH.$commit_log) && $local_conf_commits) { | // |
// if(file_exists('/tmp/commit_test') && $local_conf_commits) { | if(file_exists(COMMIT_PATH.$commit_log) && $local_conf_commits) { |
| // if(file_exists('/tmp/commit_test') && $local_conf_commits) { |
|
|
// $size = filesize(COMMIT_PATH.$commit_log); | $size = filesize(COMMIT_PATH.$commit_log); |
$size = filesize('/tmp/commit_test'); | // $size = filesize('/tmp/commit_test'); |
$contents = array(); |
$contents = array(); |
if ($size > MAX_READ_SIZE) { |
if ($size > MAX_READ_SIZE) { |
// print "<!-- Log File is greater than 500K -->\n"; |
// print "<!-- Log File is greater than 500K -->\n"; |
Line 64 cvs -d :pserver:guest@mozdev.org:/cvs co
|
Line 65 cvs -d :pserver:guest@mozdev.org:/cvs co
|
|
|
if (!$contents) |
if (!$contents) |
{ |
{ |
|
// |
$contents = file(COMMIT_PATH.$commit_log); |
$contents = file(COMMIT_PATH.$commit_log); |
// $contents = file('/tmp/commit_test'); // echo 'boing '; echo $contents; | // $contents = file('/tmp/commit_test'); // echo 'boing '; echo $contents; |
} |
} |
|
|
// preprocess Tag: stuff |
// preprocess Tag: stuff |
|
|
$stnetnoc = implode('_[_cdn_]_', $contents); echo '<pre>' . $stnetnoc . '</pre></p>'; |
|
|
|
$contents = ereg_replace('Tag\:[[:space:]]{1,}_\[_cdn_\]_[[:space:]]{1,}', 'Tag: ', $stnetnoc); echo '<pre style="color: red;">' . $contents . '</pre></p>'; |
|
|
|
$stetnoc = ereg_replace('Log\:[[:space:]]{1,}_\[_cdn_\]_[[:space:]]{1,}Tag', "Log\:_[_cdn_]_Tg", $stetnoc); |
|
|
|
$stnetnoc = eregi_replace("Tag\:\ [^[:space:]\.]{1,}\ ", "\\0_[_cdn_]_ ", $contents); |
|
// needs to not process 'Tag:' if in a commemt, i.e. it follows 'Log:' |
|
|
|
$stetnoc = ereg_replace('Log\:_\[_cdn_\]_Tg', "Log\:_[_cdn_]_Tag", $stetnoc); |
|
|
|
$contents = explode('_[_cdn_]_', $stnetnoc); |
|
|
|
// /preprocess Tag: stuff |
// /preprocess Tag: stuff |
|
|
$len=count($contents); |
$len=count($contents); |
Line 153 cvs -d :pserver:guest@mozdev.org:/cvs co
|
Line 142 cvs -d :pserver:guest@mozdev.org:/cvs co
|
// ' Removed: www/protected sources.html' |
// ' Removed: www/protected sources.html' |
// ' www/compact index.html' ? |
// ' www/compact index.html' ? |
|
|
if ( ereg("((Added|Modified|Removed):)", $checkins) || ereg("[[:space:]]{9}", $checkins) ) | if ( ereg("((Added|Modified|Removed):)", $checkins) || ereg("^[[:space:]]{9}", $checkins) ) |
{ |
{ |
|
|
$identifier = trim(substr($checkins, 0, 15)); // may change to group |
$identifier = trim(substr($checkins, 0, 15)); // may change to group |
Line 193 cvs -d :pserver:guest@mozdev.org:/cvs co
|
Line 182 cvs -d :pserver:guest@mozdev.org:/cvs co
|
for($y=0; $y < count($checkinsA); ++$y) |
for($y=0; $y < count($checkinsA); ++$y) |
{ |
{ |
|
|
if (ereg('Tag:', $checkinsA[$y]) || ereg('Tag:', $checkinsA[$y-1])) | if (ereg('Tag:', $checkinsA[$y]) || ereg('Tag:', $checkinsA[$y-1]) || $_tag) |
{ |
{ |
$TAG = true; |
$TAG = true; |
} |
} |
Line 212 cvs -d :pserver:guest@mozdev.org:/cvs co
|
Line 201 cvs -d :pserver:guest@mozdev.org:/cvs co
|
} |
} |
else |
else |
{ |
{ |
$checkins .= ' '; ++$_tagtracker; | $checkins .= ' '; |
} |
} |
|
|
$checkins .= $checkinsA[$y]; |
$checkins .= $checkinsA[$y]; |
|
|
|
if ( ereg("Tag\:$", trim($checkinsA[$y])) && empty($checkinsA[$y+1])) { |
|
$_tag = true; |
|
} |
|
else { |
|
$_tag = false; |
|
} |
|
|
if(!$TAG): $checkins .= '</a>'; endif; |
if(!$TAG): $checkins .= '</a>'; endif; |
|
|
} |
} |