List:Commits« Previous MessageNext Message »
From:mcbrown Date:October 26 2007 4:46pm
Subject:svn commit - mysqldoc@docsrva: r8342 - trunk/tools/MySQL/DynXML
View as plain text  
Author: mcbrown
Date: 2007-10-26 18:46:05 +0200 (Fri, 26 Oct 2007)
New Revision: 8342

Log:
Fixing an error where bugs could be prefixed multiple times



Modified:
   trunk/tools/MySQL/DynXML/Changelog.pm


Modified: trunk/tools/MySQL/DynXML/Changelog.pm
===================================================================
--- trunk/tools/MySQL/DynXML/Changelog.pm	2007-10-26 16:29:55 UTC (rev 8341)
+++ trunk/tools/MySQL/DynXML/Changelog.pm	2007-10-26 16:46:05 UTC (rev 8342)
Changed blocks: 5, Lines Added: 5, Lines Deleted: 6; 1944 bytes

@@ -352,9 +352,9 @@
         {
             my @bugcve;
 
-            push(@bugcve,map { $_ = "Bug \#$_" } @{$logentries->{$md5}->{bugs}})
+            push(@bugcve,map { "Bug \#$_" if (defined($_)) } @{$logentries->{$md5}->{bugs}})
                 if ((exists($logentries->{$md5}->{bugs}) && scalar @{$logentries->{$md5}->{bugs}}));
-            
+
             push(@bugcve,@{$logentries->{$md5}->{cve}})
                 if (exists($logentries->{$md5}->{cve}) && scalar @{$logentries->{$md5}->{cve}});
 

@@ -366,7 +366,6 @@
                 {
                     push @finalbugcve,$bug;
                 }
-                
             }
 
             if (scalar(@finalbugcve))

@@ -403,7 +402,7 @@
             if (scalar @addbugs)
             {
                 $message .= sprintf("<para>See also %s</para>\n",
-                                    join(', ',map { $_ = "Bug \#$_" } @addbugs));
+                                    join(', ',map { "Bug \#$_" } @addbugs));
             }
         }
 

@@ -421,7 +420,7 @@
             if (scalar @addbugs)
             {
                 $message .= sprintf("<para>This regression was introduced by %s</para>\n",
-                                    join(', ',map { $_ = "Bug \#$_" } @addbugs));
+                                    join(', ',map { "Bug \#$_" } @addbugs));
             }
         }
 

@@ -439,7 +438,7 @@
             if (scalar @addbugs)
             {
                 $message .= sprintf("<para>The patch for the following bugs was reverted: %s.</para>\n",
-                                    join(', ',map { $_ = "Bug \#$_" } @addbugs));
+                                    join(', ',map { "Bug \#$_" } @addbugs));
             }
         }
 


Thread
svn commit - mysqldoc@docsrva: r8342 - trunk/tools/MySQL/DynXMLmcbrown26 Oct