[cmclasses] r912 committed - Updated SVN client by check if path is under SVN control.

1 view
Skip to first unread message

cmcl...@googlecode.com

unread,
Jan 29, 2012, 9:51:47 PM1/29/12
to cmcl...@googlegroups.com
Revision: 912
Author: christian.wuerker
Date: Sun Jan 29 18:51:31 2012
Log: Updated SVN client by check if path is under SVN control.

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 ){

Reply all
Reply to author
Forward
0 new messages