--- mantis-0.19.2/core/checkin.php 2004-09-30 14:26:38.000000000 -0400 +++ mantis/core/checkin.php 2005-01-31 14:06:05.000000000 -0500 @@ -34,7 +34,39 @@ # Detect references to issues + concat all lines to have the comment log. $t_commit_regexp = config_get( 'source_control_regexp' ); - $t_comment = ''; + + # Special Hakcs by Gennady for Better Integration + if ($USER) { + $t_comment = "*** CVS COMMIT by $USER ***\n"; + } else + $t_comment = "*** CVS COMMIT ***\n"; + # + # Need to check the command-line stuff and build the files list. + # + + if ($argc > 1) { + $dir = strtok($argv[1], " "); + if ($dir) { + $f = strtok(" "); + + list ($file, $newrev ) = split(",", $f, 2); + #print "ARG: $i -> " . $argv[$i] . "\n"; + $v = strtok($argv[$i], ','); + #print "cvs:" . $argv[1] . "/" . $v; + $t_comment .= "cvs:" . $dir . "/" . $file; + + if ($newrev) { + #print ":$v\n"; + $t_comment .= ":$newrev\n"; + } + } + + #print "PARSED ARGS: $argc -> $t_comment\n"; + } else { + #print "NO ARGS????\n"; + } + $t_comment .= "\n"; + $t_issues = array(); while ( ( $t_line = fgets( STDIN, 1024 ) ) ) { $t_comment .= $t_line;