diff options
author | des <des@FreeBSD.org> | 2002-04-15 06:36:22 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-15 06:36:22 +0000 |
commit | e14073ff4815d3c5d29808560fe904b483386b19 (patch) | |
tree | db527e2e72749426917c4cd5951fc540cb653b6c | |
parent | fb71994ea20bc3924e3f0728d0b35e34f556cfb5 (diff) | |
download | FreeBSD-src-e14073ff4815d3c5d29808560fe904b483386b19.zip FreeBSD-src-e14073ff4815d3c5d29808560fe904b483386b19.tar.gz |
Long-forgotten patch: warn if a closed PR has no "closed by"
-rw-r--r-- | tools/tools/prstats/prstats.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/tools/prstats/prstats.pl b/tools/tools/prstats/prstats.pl index f3a4d0e..bb437a6 100644 --- a/tools/tools/prstats/prstats.pl +++ b/tools/tools/prstats/prstats.pl @@ -124,6 +124,10 @@ sub scan_pr($) { if ($pr->{'state'} eq 'closed') { $pr->{'_closed'} = $pr->{'closed-date'} || $pr->{'state-changed-when'}; $pr->{'_closed_by'} = $pr->{'state-changed-by'}; + if (!defined($pr->{'_closed_by'})) { + warn("PR $pr->{'category'}/$pr->{'number'} is incomplete\n"); + return; + } ++$CLOSER{$pr->{'_closed_by'}}; } else { $age = $pr->{'arrival-date'} / 86400; |