check-pullups.pl revision 65dfcdc392b93f9d67684adce8b33a1d8168e67c
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier# Given two CHANGES files, list [bug] entries present in the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# first one but not in the second one.
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier# Read the CHANGES file $fn and return a hash of change
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier# texts and categories indexed by change number.
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier or die "open: $fn: $!";
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier while (<$fh>) {
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier if (m/---.* released ---/) {
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier } elsif (m/^# /) {
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier } elsif (m/^\s*(\d+)\.\s+\[(\w+)\]/) {
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier # print "*** $1 $2\n";
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier $changes->{$changeid}->{category} = $category;
return $changes;
foreach my $c (sort {$a <=> $b} keys %$c1) {