svn: /web/doc-editor/trunk/php/ SvnClient.php

From: Date: Fri, 23 Apr 2010 22:26:45 +0000
Subject: svn: /web/doc-editor/trunk/php/ SvnClient.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1803@lists.php.net to get a copy of this message
yannick Fri, 23 Apr 2010 22:26:45 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=298395 Log: Filter some text from commit output Changed paths: U web/doc-editor/trunk/php/SvnClient.php Modified: web/doc-editor/trunk/php/SvnClient.php =================================================================== --- web/doc-editor/trunk/php/SvnClient.php 2010-04-23 22:18:14 UTC (rev 298394) +++ web/doc-editor/trunk/php/SvnClient.php 2010-04-23 22:26:45 UTC (rev 298395) @@ -563,7 +563,16 @@ RepositoryManager::getInstance()->setStaticValue('info', 'commitFiles', json_encode($info), true); } - return $output; + // Walk throw the output to filter some text + $cleanOutput = array(); + + for( $i=0; $i < count($ouput); $i++ ) { + if( $output[$i] != "svn: warning: Can't open file '/root/.subversion/servers': Permission denied" ) { + array_push($cleanOutput, $output[$i]); + } + } + + return $cleanOutput; } }

« previous php.doc.web (#1803) next »