Update cvsmailfilter.pl to optionally show the name of the person who made the commit.

Adding the flag to activate that option to the loginfo entries for cvs-checkins@bugzilla.org and sysalerts@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@156300 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
justdave%bugzilla.org
2004-05-12 16:33:34 +00:00
parent 45a026f500
commit 03a16944ac
2 changed files with 11 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ sub get_response_code {
my $debug = 0;
my $addsonly = 0;
my $showcommitter = 0;
my $mailhost = "127.0.0.1";
my $urlbase = "";
@@ -55,6 +56,7 @@ my $cvsroot = "";
my @mailto;
my $fileregexp = "";
my $username = $ENV{"CVS_USER"} || getlogin || (getpwuid($<))[0] || "nobody";
while (@ARGV) {
my $arg = shift @ARGV;
@@ -62,6 +64,8 @@ while (@ARGV) {
if ($arg eq '-d') {
$debug = 1;
print STDERR "Debug turned on...\n";
} elsif ($arg eq '-c') {
$showcommitter = 1;
} elsif ($arg eq '-r') {
$cvsroot = shift @ARGV;
} elsif ($arg eq '-h') {
@@ -94,6 +98,11 @@ if ($urlbase ne "" && $cvsargs ne "") {
}
my $message = "";
if ($showcommitter) {
$message .= "Changes committed by $username:\n\n";
}
my $filesadded = 0;
while (<>) {
my $line = $_;

View File

@@ -35,6 +35,6 @@ mozilla/netwerk/socket/tests $CVSROOT/CVSROOT/cvsmailfilter.pl -u http://bonsai.
mozilla/dbm $CVSROOT/CVSROOT/cvsmailfilter.pl -u http://bonsai.mozilla.org -r /cvsroot -s %s mozilla-crypto-checkins@mozilla.org
# misc modules
mozilla/webtools/bugzilla $CVSROOT/CVSROOT/cvsmailfilter.pl -u http://bonsai.mozilla.org -r /cvsroot -s %s cvs-checkins@bugzilla.org webtools-changed@warp.mcom.com
mozilla/webtools/bugzilla $CVSROOT/CVSROOT/cvsmailfilter.pl -c -u http://bonsai.mozilla.org -r /cvsroot -s %s cvs-checkins@bugzilla.org webtools-changed@warp.mcom.com
mozilla/webtools $CVSROOT/CVSROOT/cvsmailfilter.pl -u http://bonsai.mozilla.org -r /cvsroot -s %s webtools-changed@warp.mcom.com
CVSROOT $CVSROOT/CVSROOT/cvsmailfilter.pl -u http://bonsai.mozilla.org -r /cvsroot -s %s -f modules sysalerts@mozilla.org
CVSROOT $CVSROOT/CVSROOT/cvsmailfilter.pl -c -u http://bonsai.mozilla.org -r /cvsroot -s %s -f modules sysalerts@mozilla.org