671 } |
687 } |
672 |
688 |
673 # Must be properly formatted change description |
689 # Must be properly formatted change description |
674 # discard everything seen so far except the "Change" line. |
690 # discard everything seen so far except the "Change" line. |
675 @revisedLines = (shift @revisedLines); |
691 @revisedLines = (shift @revisedLines); |
676 while ($line = shift @changeLines) |
692 |
|
693 # Process all lines starting with the first <EXTERNAL> section. |
|
694 while (($line =~ /<EXTERNAL>$/) || ($line = shift @changeLines)) |
677 { |
695 { |
678 last if ($line =~ /<\/EXTERNAL>$/); |
696 # Process an <EXTERNAL> section. |
|
697 while ($line =~ /<EXTERNAL>$/) |
|
698 { |
|
699 # Keep processing until an </EXTERNAL> line is encountered |
|
700 while(($line = shift @changeLines) && ($line !~ /<\/EXTERNAL>$/)) |
|
701 { |
|
702 $line =~ s/^\t+//; |
|
703 $line =~ s/\&/&/g; |
|
704 $line =~ s/\</</g; |
|
705 $line =~ s/\>/>/g; |
|
706 $line =~ s/\"/"/g; # quote the " character as well |
|
707 |
|
708 push @revisedLines, $line; |
679 |
709 |
680 $line =~ s/^\t+//; |
710 # Opportunity to pick information out of changes as they go past |
681 $line =~ s/\&/&/g; |
711 if ($line =~ /^\s*((DEF|PDEF|INC)\d+):?\s/) |
682 $line =~ s/\</</g; |
712 { |
683 $line =~ s/\>/>/g; |
713 $allDefects{$1} = $line; |
684 $line =~ s/\"/"/g; # quote the " character as well |
714 next; |
685 |
715 } |
686 push @revisedLines, $line; |
716 if ($line =~ /^(BR[0-9.]+)\s/) |
687 |
717 { |
688 # Opportunity to pick information out of changes as they go past |
718 $allBreaks{$1} = $line; |
689 if ($line =~ /^\s*((DEF|PDEF|INC)\d+):?\s/) |
719 next; |
690 { |
720 } |
691 $allDefects{$1} = $line; |
721 } |
692 next; |
722 push @revisedLines, $spacer; |
693 } |
723 } |
694 if ($line =~ /^(BR[0-9.]+)\s/) |
|
695 { |
|
696 $allBreaks{$1} = $line; |
|
697 next; |
|
698 } |
|
699 |
|
700 } |
724 } |
701 |
725 |
702 # update the description for this change |
726 # update the description for this change |
703 @{$changeToDescription{$change}} = @revisedLines; |
727 @{$changeToDescription{$change}} = @revisedLines; |
704 printf ".. formatted change %d - %d external lines\n", $change, scalar @revisedLines if ($debug); |
728 printf ".. formatted change %d - %d external lines\n", $change, scalar @revisedLines if ($debug); |