diff options
author | joe <joe@FreeBSD.org> | 2000-06-17 08:29:08 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2000-06-17 08:29:08 +0800 |
commit | 27c0bdef608d9ddbbb742a0981b731a12af8f995 (patch) | |
tree | 206d91fce25144511f1557808b3c41d66df1cc65 /CVSROOT | |
parent | 1fa58d77436e288ef798d4967d5f1c9e1cce6da2 (diff) | |
download | freebsd-ports-gnome-27c0bdef608d9ddbbb742a0981b731a12af8f995.tar.gz freebsd-ports-gnome-27c0bdef608d9ddbbb742a0981b731a12af8f995.tar.zst freebsd-ports-gnome-27c0bdef608d9ddbbb742a0981b731a12af8f995.zip |
Add a header to all commit mail showing which branches the changes
were applied to; useful for filtering by procmail, etc.
The additional header is of the form:
X-FreeBSD-CVS-Branch: HEAD,RELENG_3,RELENG_4
Requested by: andreas & asmodai
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/log_accum.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl index 80dd20a84764..e2bf63eff5c1 100755 --- a/CVSROOT/log_accum.pl +++ b/CVSROOT/log_accum.pl @@ -59,6 +59,9 @@ $LOG_FILE = "/tmp/#cvs.files.log"; $SUMMARY_FILE = "/tmp/#cvs.files.summary"; $MAIL_FILE = "/tmp/#cvs.files.mail"; $SUBJ_FILE = "/tmp/#cvs.files.subj"; +$TAGS_FILE = "/tmp/#cvs.files.tags"; + +$X_BRANCH_HDR = "X-FreeBSD-CVS-Branch:"; $CVSROOT = $ENV{'CVSROOT'} || "/home/ncvs"; @@ -389,6 +392,12 @@ sub mail_notification { if ($subject ne "") { 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.$id", ""); + print (MAIL "$X_BRANCH_HDR ", join(",", sort keys %tags), "\n"); + print (MAIL "\n"); print(MAIL join("\n", @text)); @@ -537,6 +546,7 @@ while (<STDIN>) { push (@log_lines, $_); } } +&append_line("$TAGS_FILE.$id", $tag); # # Strip leading and trailing blank lines from the log message. Also |