[ros-diffs] [cfinck] 392: Link source files and line numbers mentioned in the test log with the source files in their exact revisions in ViewVC Based on a patch by Alwyn Tan (alwyn.tan at gmail.com)

cfinck at svn.reactos.org cfinck at svn.reactos.org
Sun Apr 26 02:11:43 CEST 2009


Author: cfinck
Date: Sun Apr 26 04:11:43 2009
New Revision: 392

URL: http://svn.reactos.org/svn/reactos?rev=392&view=rev
Log:
Link source files and line numbers mentioned in the test log with the source files in their exact revisions in ViewVC
Based on a patch by Alwyn Tan (alwyn.tan at gmail.com)

Modified:
    branches/danny-web/www/www.reactos.org/testman/config.inc.php
    branches/danny-web/www/www.reactos.org/testman/detail.php

Modified: branches/danny-web/www/www.reactos.org/testman/config.inc.php
URL: http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/testman/config.inc.php?rev=392&r1=391&r2=392&view=diff
==============================================================================
--- branches/danny-web/www/www.reactos.org/testman/config.inc.php [iso-8859-1] (original)
+++ branches/danny-web/www/www.reactos.org/testman/config.inc.php [iso-8859-1] Sun Apr 26 04:11:43 2009
@@ -12,4 +12,5 @@
 	
 	define("RESULTS_PER_PAGE", 100);
 	define("MAX_COMPARE_RESULTS", 5);
+	define("VIEWVC_TRUNK", "http://svn.reactos.org/svn/reactos/trunk");
 ?>

Modified: branches/danny-web/www/www.reactos.org/testman/detail.php
URL: http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/testman/detail.php?rev=392&r1=391&r2=392&view=diff
==============================================================================
--- branches/danny-web/www/www.reactos.org/testman/detail.php [iso-8859-1] (original)
+++ branches/danny-web/www/www.reactos.org/testman/detail.php [iso-8859-1] Sun Apr 26 04:11:43 2009
@@ -88,7 +88,15 @@
 	</tr>
 	<tr class="odd" onmouseover="Row_OnMouseOver(this)" onmouseout="Row_OnMouseOut(this)">
 		<td class="info"><?php echo $testman_langres["log"]; ?>:</td>
-		<td><pre><?php echo htmlspecialchars($row["log"]); ?></pre></td>
+		<td><pre><?php
+			$patterns[0] = "#^([a-z]*:?\()([a-zA-Z0-9\/]+.[a-z]+):([0-9]+)(\))#m";
+			$patterns[1] = "#^([a-zA-Z0-9]+.[a-z]+):([0-9]+)(: )#m";
+
+			$replacements[0] = '$1<a href="' . VIEWVC_TRUNK . '/reactos/$2?revision=' . $row["revision"] . '&amp;view=markup#l_$3">$2:$3</a>$4';
+			$replacements[1] = '<a href="' . VIEWVC_TRUNK . '/rostests/winetests/' . $row["module"] . '/$1?revision=' . $row["revision"] . '&amp;view=markup#l_$2">$1:$2</a>$3';
+			
+			echo preg_replace($patterns, $replacements, htmlspecialchars($row["log"]));
+		?></pre></td>
 	</tr>
 </table><br />
 



More information about the Ros-diffs mailing list