aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-10-26 19:56:04 +0800
committerjoe <joe@FreeBSD.org>2001-10-26 19:56:04 +0800
commit84ce805e5e119415489f90afbfcac1a73f08a487 (patch)
treefc28ac322c9155056301518c772e71203ea8e3db
parent51295fe1bee7862d7e41632bde5c63398f79fcf9 (diff)
downloadfreebsd-ports-gnome-84ce805e5e119415489f90afbfcac1a73f08a487.tar.gz
freebsd-ports-gnome-84ce805e5e119415489f90afbfcac1a73f08a487.tar.zst
freebsd-ports-gnome-84ce805e5e119415489f90afbfcac1a73f08a487.zip
If a committer modifies more than one area of the tree in one commit
cvs gives them the chance to enter different log messages for each area. If they do then it's really separate commits and so treat it as such, mailing separate emails and writing separate logs for each one.
-rwxr-xr-xCVSROOT/log_accum.pl21
1 files changed, 12 insertions, 9 deletions
diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl
index c489c7dec125..a5b0f9c97b7a 100755
--- a/CVSROOT/log_accum.pl
+++ b/CVSROOT/log_accum.pl
@@ -775,10 +775,11 @@ if (-e $LAST_FILE) {
#
# Produce the final compilation of the log messages
#
-my @log_msg = &build_header();
for (my $i = 0; ; $i++) {
last unless -e "$LOG_FILE.$i";
+ my @log_msg = &build_header();
+
my @mod_lines = &read_logfile("$CHANGED_FILE.$i");
push @log_msg, &format_lists("Modified", @mod_lines) if @mod_lines;
@@ -796,16 +797,18 @@ for (my $i = 0; ; $i++) {
push @log_msg, " ", map {" $_"}
format_summaries("$SUMMARY_FILE.$i");
}
+
+ #
+ # Add a copy of the message in the relevant log files.
+ #
+ &do_changes_file(@log_msg);
+
+ #
+ # Mail out the notification.
+ #
+ &mail_notification(@log_msg);
}
-#
-# Put the log message at the beginning of the Changes file
-#
-&do_changes_file(@log_msg);
-#
-# Mail out the notification.
-#
-&mail_notification(@log_msg);
&cleanup_tmpfiles();
exit 0;
# EOF