diff options
author | joe <joe@FreeBSD.org> | 2001-05-13 06:16:17 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-05-13 06:16:17 +0800 |
commit | 4714b5567607bd982cbc0ba15702ffdfd6a3ad83 (patch) | |
tree | a214eacf5b751d8df8fe74525380a21773678b74 | |
parent | 08cbaa8700f0e38ff41ba69966564bd6ac1a79c5 (diff) | |
download | freebsd-ports-graphics-4714b5567607bd982cbc0ba15702ffdfd6a3ad83.tar.gz freebsd-ports-graphics-4714b5567607bd982cbc0ba15702ffdfd6a3ad83.tar.zst freebsd-ports-graphics-4714b5567607bd982cbc0ba15702ffdfd6a3ad83.zip |
Recently Maxim Sobolev <sobomax@FreeBSD.org> introduced an MFC
notification service driven from 'MFC after:' headers in the commit
message.
This commit adds 'MFC after:' into the rcstemplate and associated
code to make sure that if it's used it's used correctly.
Based upon code submitted by Maxim Sobolev <sobomax@FreeBSD.org>.
Submitted by: sobomax
-rwxr-xr-x | CVSROOT/log_accum.pl | 1 | ||||
-rwxr-xr-x | CVSROOT/logcheck | 12 | ||||
-rw-r--r-- | CVSROOT/rcstemplate | 6 |
3 files changed, 19 insertions, 0 deletions
diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl index 1e63f2c75fe..17ea1710804 100755 --- a/CVSROOT/log_accum.pl +++ b/CVSROOT/log_accum.pl @@ -615,6 +615,7 @@ while (<STDIN>) { /^Reviewed by:$/i || /^Submitted by:$/i || /^Obtained from:$/i || + /^MFC after:$/i || /^Approved by:$/i) { push @log_lines, $_; } diff --git a/CVSROOT/logcheck b/CVSROOT/logcheck index fdec5dbca35..1f03cb27b95 100755 --- a/CVSROOT/logcheck +++ b/CVSROOT/logcheck @@ -50,6 +50,18 @@ while(<IN>) { /^PR:$/i) { next; } + + # Special handling for type checking the 'MFC after' field. + if (/^MFC after:\s*(.*)$/) { + # Ignore it if no value was filled in. + next unless $1; + + unless ($1 =~ /[\d]+ (days?|weeks?)$/) { + print "Parse error in 'MFC after:'\n"; + exit 1; + } + } + if ($blank && $first) { # Previous line(s) was blank, this isn't. Close the # collapsed section. diff --git a/CVSROOT/rcstemplate b/CVSROOT/rcstemplate index 8c68bf42f20..c9097ea7e86 100644 --- a/CVSROOT/rcstemplate +++ b/CVSROOT/rcstemplate @@ -4,9 +4,15 @@ Submitted by: Reviewed by: Approved by: Obtained from: +MFC after: CVS: ---------------------------------------------------------------------- CVS: PR: Fill this in if a GNATS PR is affected by the change. CVS: Submitted by: Fill this in if someone else sent in the change. CVS: Reviewed by: Fill this in if someone else reviewed your modification. CVS: Approved by: Fill this in if you needed approval for this commit. CVS: Obtained from: Fill this in if the change is from third party software. +CVS: +CVS: MFC after: XXX [day[s]|week[s]] +CVS: Fill this in if you want to get MFC notification later. XXX is a +CVS: number of days or weeks after which MFC is planned. If no day[s] +CVS: or week[s] suffix was specified then days assumed. |