diff options
author | joe <joe@FreeBSD.org> | 2001-02-27 02:57:57 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-02-27 02:57:57 +0800 |
commit | c49d401932762fbe3229767633a298842150ad8b (patch) | |
tree | 486018aec9c513edfa6907c47267b7450d3238e5 | |
parent | 69fc69f694b88d1009f1c8360ee55025db734356 (diff) | |
download | freebsd-ports-gnome-c49d401932762fbe3229767633a298842150ad8b.tar.gz freebsd-ports-gnome-c49d401932762fbe3229767633a298842150ad8b.tar.zst freebsd-ports-gnome-c49d401932762fbe3229767633a298842150ad8b.zip |
Only add a CVS-branch header to the email if $X_BRANCH_HDR is defined.
This allows it to be switched off if necessary.
-rwxr-xr-x | CVSROOT/log_accum.pl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl index 63d67958ee61..918a43aae2dc 100755 --- a/CVSROOT/log_accum.pl +++ b/CVSROOT/log_accum.pl @@ -456,10 +456,12 @@ sub mail_notification { print(MAIL $subject, "\n"); } - # Add a header to the mail msg showing which branches - # were modified during the commit. - %tags = map { $_ => 1 } &read_logfile("$TAGS_FILE.$PID"); - print (MAIL "$X_BRANCH_HDR ", join(",", sort keys %tags), "\n"); + # If required add a header to the mail msg showing + # which branches were modified during the commit. + if ($X_BRANCH_HDR) { + my %tags = map { $_ => 1 } &read_logfile("$TAGS_FILE.$PID"); + print MAIL "$X_BRANCH_HDR ", join(",", sort keys %tags), "\n"; + } print (MAIL "\n"); |