svn: /web/doc-editor/trunk/php/ SvnClient.php
[email protected] (Yannick Torres)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
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;
}
}