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:
@@ -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 = $_;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user