http://code.google.com/p/cmclasses/source/detail?r=912
Modified:
/trunk/src/Net/SVN/Client.php5
=======================================
--- /trunk/src/Net/SVN/Client.php5 Sat Oct 22 18:09:10 2011
+++ /trunk/src/Net/SVN/Client.php5 Sun Jan 29 18:51:31 2012
@@ -45,7 +45,10 @@
public function info( $path = '' ){
$path = $this->path.$path;
- return new XML_Element( `svn info $path --xml 2>&1` );
+ if( !strlen( `svn info $path` ) )
+ throw new Exception( 'Path '.$path.' is not under SVN conrol' );
+ $xml = `svn info $path --xml 2>&1`;
+ return new XML_Element( $xml );
}
public function ls( $path, $revision = SVN_REVISION_HEAD, $recurse =
FALSE ){