cvs: pecl /svn svn.c

From: Date: Mon, 28 Jan 2008 03:52:39 +0000
Subject: cvs: pecl /svn svn.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-9609@lists.php.net to get a copy of this message
alan_k Mon Jan 28 03:52:39 2008 UTC Modified files: /pecl/svn svn.c Log: use svn_client_checkout2, and add flags feature to svn_checkout - patch by develar http://cvs.php.net/viewvc.cgi/pecl/svn/svn.c?r1=1.34&r2=1.35&diff_format=u Index: pecl/svn/svn.c diff -u pecl/svn/svn.c:1.34 pecl/svn/svn.c:1.35 --- pecl/svn/svn.c:1.34 Sun Jan 27 04:53:15 2008 +++ pecl/svn/svn.c Mon Jan 28 03:52:39 2008 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: svn.c,v 1.34 2008/01/27 04:53:15 alan_k Exp $ */ +/* $Id: svn.c,v 1.35 2008/01/28 03:52:39 alan_k Exp $ */ #define SVN_EXTENSION_VERSION "0.2.0" @@ -506,7 +506,7 @@ /* reference http://www.linuxdevcenter.com/pub/a/linux/2003/04/24/libsvn1.html */ -/* {{{ proto bool svn_checkout(string repos, string targetpath [, int revision]) +/* {{{ proto bool svn_checkout(string repos, string targetpath [, int revision, [, int flags]) Checks out a particular revision from repos into targetpath */ PHP_FUNCTION(svn_checkout) { @@ -515,10 +515,11 @@ svn_error_t *err; svn_opt_revision_t revision = { 0 }; long revno = -1; + long flags = 0; apr_pool_t *subpool; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", - &repos_url, &repos_url_len, &target_path, &target_path_len, &revno) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|ll", + &repos_url, &repos_url_len, &target_path, &target_path_len, &revno, &flags) == FAILURE) { return; } @@ -534,12 +535,13 @@ } else { revision.kind = svn_opt_revision_head; } - - err = svn_client_checkout (NULL, + + err = svn_client_checkout2 (NULL, repos_url, target_path, &revision, - TRUE, /* yes, we want to recurse into the URL */ + !(flags & SVN_NON_RECURSIVE), + flags & SVN_IGNORE_EXTERNALS, SVN_G(ctx), subpool); @@ -742,6 +744,7 @@ const char *msg, apr_pool_t *pool) { + zval *return_value = (zval *)baton, *row, *paths; char *path; apr_hash_index_t *hi;

« previous php.pecl.cvs (#9609) next »