Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r3 - trunk: . tests

php-svn-client
Discussion topic

Back to topic list

svn commit: r3 - trunk: . tests

Reply

Author fedortyurin
Full name Fedor Tyurin
Date 2006-12-04 09:33:01 PST
Message Author: fedortyurin
Date: 2006-12-04 09:32:59-0800
New Revision: 3

Added:
   trunk/php_svn_client.c
   trunk/php_svn_client.h
   trunk/php_svn_client.vcproj
   trunk/svn_client.ncb (contents, props changed)
   trunk/svn_client.sln
   trunk/tests/
   trunk/tests/quickstart.php

Log:
Initial source code

Added: trunk/php_svn_client.c
Url: http://php-svn-clien​t.tigris.org/source/​browse/php-svn-clien​t/trunk/php_svn_clie​nt.c?view=auto&r​ev=3
====================​====================​====================​==================
--- (empty file)
+++ trunk/php_svn_client.c 2006-12-04 09:32:59-0800
@@ -0,0 +1,393 @@
+#include "php.h"
+
+#include "fcntl.h"
+#include "php_svn_client.h"
+#include "php_ini.h"
+#include "php_globals.h"
+#include "ext/standard/info.h"
+#include "zend_API.h"
+
+#include "svn_version.h"
+#include "svn_client.h"
+#include "svn_pools.h"
+#include "svn_path.h"
+
+static int le_svn_client_context;
+static int le_svn_client_providers;
+static int le_svn_client_auth_baton;
+
+static apr_allocator_t *allocator;
+static apr_pool_t *pool;
+
+
+zend_function_entry svn_client_functions[] = {
+ PHP_FE(svn_client_version, NULL)
+ PHP_FE(svn_client_cr​eate_providers, NULL)
+ PHP_FE(svn_client_auth_open, NULL)
+ PHP_FE(svn_client_cr​eate_context, NULL)
+ PHP_FE(svn_client_se​t_context_field, NULL)
+ PHP_FE(svn_client_checkout, NULL)
+ {NULL, NULL, NULL}
+};
+
+zend_module_entry svn_client_module_entry = {
+ STANDARD_MODULE_HEADER,
+ "svn_client",
+ svn_client_functions,
+ PHP_MINIT(svn_client),
+ NULL,
+ NULL,
+ NULL,
+ PHP_MINFO(svn_client),
+ NO_VERSION_YET,
+ STANDARD_MODULE_PROPERTIES,
+};
+
+ZEND_GET_MODULE(svn_client)
+
+static void php_free_svn_client_​context(zend_rsrc_li​st_entry *rsrc TSRMLS_DC)
+{
+ free((svn_client_ctx_t*) rsrc->ptr);
+ return;
+}
+
+static void php_free_svn_client_​providers(zend_rsrc_​list_entry *rsrc TSRMLS_DC)
+{
+ return;
+}
+
+static void php_free_svn_client_​auth_baton(zend_rsrc​_list_entry *rsrc TSRMLS_DC)
+{
+ return;
+}
+
+static svn_error_t *php_prompt_svn_auth​_ssl_server_trust (
+ svn_auth_cred_ssl_se​rver_trust_t **cred,
+ void *baton,
+ const char *realm,
+ apr_uint32_t failures,
+ const svn_auth_ssl_server_cert_info_t *cert_info,
+ svn_boolean_t may_save,
+ apr_pool_t *pool)
+{
+ printf("hostname=%s\n", cert_info->hostname);
+ printf("fingerprint=%s\n", cert_info->fingerprint);
+ printf("valid_from=%s\n", cert_info->valid_from);
+ printf("valid_until=%s\n", cert_info->valid_until);
+ printf("issuer_dname=%s\n", cert_info->issuer_dname);
+ printf("ascii_cert=%s\n", cert_info->ascii_cert);
+
+ *cred = (svn_auth_cred_ssl_s​erver_trust_t*) apr_palloc(pool, sizeof(svn_auth_cred​_ssl_server_trust_t)​);
+ (*cred)->may_save = 0;
+ (*cred)->accepted_failures = failures;
+
+ return SVN_NO_ERROR;
+}
+
+/* Version compatibility check */
+static svn_error_t* check_lib_versions(void)
+{
+ static const svn_version_checklist_t checklist[] =
+ {
+ { "svn_subr", svn_subr_version },
+ { "svn_client", svn_client_version },
+ { "svn_wc", svn_wc_version },
+ { "svn_ra", svn_ra_version },
+ { "svn_delta", svn_delta_version },
+ { "svn_diff", svn_diff_version },
+ { NULL, NULL }
+ };
+
+ SVN_VERSION_DEFINE(my_version);
+ return svn_ver_check_list(​&my_version, checklist);
+}
+
+PHP_MINIT_FUNCTION(svn_client)
+{
+ svn_error_t *err;
+
+ le_svn_client_context = zend_register_list_d​estructors_ex(php_fr​ee_svn_client_contex​t, NULL, "svn_client_context", module_number);
+ le_svn_client_providers = zend_register_list_d​estructors_ex(php_fr​ee_svn_client_provid​ers, NULL, "svn_client_providers", module_number);
+ le_svn_client_auth_baton = zend_register_list_d​estructors_ex(php_fr​ee_svn_client_auth_b​aton, NULL, "svn_client_auth_baton", module_number);
+
+ if (apr_allocator_creat​e(&allocator))
+ return FAILURE;
+
+ apr_allocator_max_fr​ee_set(allocator, SVN_ALLOCATOR_RECOMM​ENDED_MAX_FREE);
+
+ pool = svn_pool_create_ex(NULL, allocator);
+
+ /* Check library versions */
+ err = check_lib_versions();
+ if (err)
+ {
+ printf("%s\n", err->message);
+ return FAILURE;
+ }
+
+ /* Initialize the RA library. */
+ err = svn_ra_initialize(pool);
+ if (err)
+ {
+ printf("%s\n", err->message);
+ return FAILURE;
+ }
+
+ return SUCCESS;
+}
+
+PHP_MSHUTDOWN_FUNCT​ION(svn_client)
+{
+ svn_pool_destroy(pool);
+ return SUCCESS;
+}
+
+PHP_MINFO_FUNCTION(svn_client)
+{
+ char version[32];
+
+ sprintf(version,"%d", 1);
+
+ php_info_print_table_start();
+ php_info_print_table_row(2, "Subversion client", "Enabled");
+ php_info_print_table_row(2, "SVN API Version", version);
+ php_info_print_table_end();
+}
+
+PHP_FUNCTION(svn_cl​ient_version)
+{
+ const svn_version_t* svn_version;
+
+ if (ZEND_NUM_ARGS() != 0) {
+ WRONG_PARAM_COUNT;
+ }
+
+ array_init(return_value);
+
+ svn_version = svn_client_version();
+
+ add_assoc_long(return_value, "major", svn_version->major);
+ add_assoc_long(return_value, "minor", svn_version->minor);
+ add_assoc_long(return_value, "patch", svn_version->patch);
+ add_assoc_string(return_value, "tag", (char*)svn_version->tag, 1);
+
+ //Returns nothing to satisfy the void prototype
+ return;
+}
+
+PHP_FUNCTION(svn_cl​ient_create_provider​s)
+{
+ svn_auth_provider_object_t *provider = NULL;
+ apr_array_header_t *providers = NULL;
+
+ providers = apr_array_make(pool, 12, sizeof(svn_auth_prov​ider_object_t *));
+
+ svn_auth_get_simple_​provider(&provid​er, pool);
+ APR_ARRAY_PUSH(providers, svn_auth_provider_object_t *) = provider;
+
+ svn_auth_get_usernam​e_provider(&prov​ider, pool);
+ APR_ARRAY_PUSH(providers, svn_auth_provider_object_t *) = provider;
+
+ svn_auth_get_ssl_ser​ver_trust_prompt_pro​vider (&provider, php_prompt_svn_auth_​ssl_server_trust, NULL, pool);
+ APR_ARRAY_PUSH(providers, svn_auth_provider_object_t *) = provider;
+
+ svn_auth_get_ssl_ser​ver_trust_file_provi​der(&provider, pool);
+ APR_ARRAY_PUSH(providers, svn_auth_provider_object_t *) = provider;
+
+ svn_auth_get_ssl_cli​ent_cert_file_provid​er(&provider, pool);
+ APR_ARRAY_PUSH(providers, svn_auth_provider_object_t *) = provider;
+
+ svn_auth_get_ssl_cli​ent_cert_pw_file_pro​vider(&provider,​ pool);
+ APR_ARRAY_PUSH(providers, svn_auth_provider_object_t *) = provider;
+
+ ZEND_REGISTER_RESOUR​CE(return_value, providers, le_svn_client_providers);
+
+ return;
+}
+
+PHP_FUNCTION(svn_cl​ient_auth_open)
+{
+ zval **resource_providers = 0;
+ zval **string_auth_username = 0;
+ zval **string_auth_password = 0;
+ apr_array_header_t *providers = NULL;
+ const char *auth_username = 0;
+ const char *auth_password = 0;
+
+ svn_auth_baton_t *ab = 0;
+
+ switch (ZEND_NUM_ARGS()) {
+ case 1:
+ if (zend_get_parameters_ex(1, &resource_provid​ers)==FAILURE) {
+ RETURN_FALSE;
+ }
+ break;
+ case 2:
+ if (zend_get_parameters_ex(2, &resource_providers, &string_auth_use​rname)==FAILURE) {
+ RETURN_FALSE;
+ }
+ break;
+ case 3:
+ if (zend_get_parameters_ex(3, &resource_providers, &string_auth_username, &string_auth_pas​sword)==FAILURE) {
+ RETURN_FALSE;
+ }
+ break;
+ default:
+ WRONG_PARAM_COUNT;
+ break;
+ }
+
+ if (resource_providers)
+ {
+ ZEND_FETCH_RESOURCE(providers, apr_array_header_t *, resource_providers, -1, "svn client providers", le_svn_client_providers);
+ }
+
+ if (string_auth_username)
+ {
+ convert_to_string_ex​(string_auth_usernam​e);
+ auth_username = Z_STRVAL_PP(string_a​uth_username);
+ }
+
+ if (string_auth_password)
+ {
+ convert_to_string_ex​(string_auth_passwor​d);
+ auth_password = Z_STRVAL_PP(string_a​uth_password);
+ }
+
+ svn_auth_open(&ab, providers, pool);
+
+ if (auth_username)
+ svn_auth_set_parameter(ab, SVN_AUTH_PARAM_DEFAU​LT_USERNAME, auth_username);
+ if (auth_password)
+ svn_auth_set_parameter(ab, SVN_AUTH_PARAM_DEFAU​LT_PASSWORD, auth_password);
+
+ ZEND_REGISTER_RESOUR​CE(return_value, ab, le_svn_client_auth_baton);
+
+ return;
+}
+
+PHP_FUNCTION(svn_cl​ient_create_context)​
+{
+ svn_client_ctx_t* ctx = 0;
+
+ if (ZEND_NUM_ARGS() != 0) {
+ WRONG_PARAM_COUNT;
+ }
+
+ svn_client_create_co​ntext(&ctx, pool);
+
+ ZEND_REGISTER_RESOUR​CE(return_value, ctx, le_svn_client_context);
+
+ return;
+}
+
+PHP_FUNCTION(svn_cl​ient_set_context_fie​ld)
+{
+ zval **resource_ctx = 0;
+ zval **string_ctx_field = 0;
+ zval **resource_ctx_field_value = 0;
+
+ svn_client_ctx_t* ctx = 0;
+ svn_auth_baton_t *ab = 0;
+ char *ctx_field = 0;
+
+
+ switch (ZEND_NUM_ARGS()) {
+ case 3:
+ if (zend_get_parameters_ex(3, &resource_ctx, &string_ctx_field, &resource_ctx_fi​eld_value)==FAILURE)​ {
+ RETURN_FALSE;
+ }
+ break;
+ default:
+ WRONG_PARAM_COUNT;
+ break;
+ }
+
+ ZEND_FETCH_RESOURCE(ctx, svn_client_ctx_t*, resource_ctx, -1, "svn client context", le_svn_client_context);
+
+ convert_to_string_ex​(string_ctx_field);
+ ctx_field = Z_STRVAL_PP(string_ctx_field);
+
+ if (!strcmp(ctx_field, "auth_baton"))
+ {
+ printf("ctx_field=%s\n", ctx_field);
+ ZEND_FETCH_RESOURCE(ab, svn_auth_baton_t*, resource_ctx_field_value, -1, "svn client auth baton", le_svn_client_auth_baton);
+ ctx->auth_baton = ab;
+ }
+ else
+ {
+ RETURN_FALSE;
+ }
+
+ ZEND_REGISTER_RESOUR​CE(return_value, ctx, le_svn_client_context);
+
+ return;
+}
+
+PHP_FUNCTION(svn_cl​ient_checkout)
+{
+ zval **z_string_url = 0;
+ zval **z_string_path = 0;
+ zval **z_resource_ctx = 0;
+
+ char *url = 0;
+ svn_client_ctx_t* ctx = 0;
+ char *path = 0;
+
+ svn_error_t *err;
+ const char *true_url;
+
+ svn_opt_revision_t revision;
+ svn_opt_revision_t peg_revision;
+
+ switch (ZEND_NUM_ARGS()) {
+ case 3:
+ if (zend_get_parameters_ex(3, &z_string_url, &z_string_path, &z_resource_ctx)==FAILURE) {
+ RETURN_FALSE;
+ }
+ break;
+ default:
+ WRONG_PARAM_COUNT;
+ break;
+ }
+ convert_to_string_ex​(z_string_url);
+ url=Z_STRVAL_PP(z_string_url);
+
+ convert_to_string_ex​(z_string_path);
+ path=Z_STRVAL_PP(z_s​tring_path);
+
+ printf("url=%s\n", url);
+ printf("path=%s\n", path);
+
+ ZEND_FETCH_RESOURCE(ctx, svn_client_ctx_t*, z_resource_ctx, -1, "svn client context", le_svn_client_context);
+
+ err = svn_opt_parse_path(​&peg_revision, &true_url, url, pool);
+ if (err) {
+ printf("%s\n", err->message);
+ RETURN_FALSE;
+ }
+
+ true_url = svn_path_canonicalize(true_url, pool);
+
+ if (revision.kind == svn_opt_revision_unspecified) {
+ if (peg_revision.kind != svn_opt_revision_unspecified)
+ revision = peg_revision;
+ else
+ revision.kind = svn_opt_revision_head;
+ }
+
+
+ err = svn_client_checkout2(NULL, true_url, path,
+ &peg_revision,
+ &revision,
+ TRUE,
+ FALSE,
+ ctx, pool);
+
+ if (err) {
+ printf("%s\n", err->message);
+ RETURN_FALSE;
+ }
+
+ return;
+}
\ No newline at end of file

Added: trunk/php_svn_client.h
Url: http://php-svn-clien​t.tigris.org/source/​browse/php-svn-clien​t/trunk/php_svn_clie​nt.h?view=auto&r​ev=3
====================​====================​====================​==================
--- (empty file)
+++ trunk/php_svn_client.h 2006-12-04 09:32:59-0800
@@ -0,0 +1,16 @@
+#define zend_module_entry zend_module_entry
+
+//#include "zend_modules.h"
+
+extern zend_module_entry svn_client_module_entry;
+
+#include "TSRM.h"
+
+PHP_MINIT_FUNCTION(​svn_client);
+PHP_MINFO_FUNCTION(​svn_client);
+PHP_FUNCTION(svn_cl​ient_version);
+PHP_FUNCTION(svn_cl​ient_create_provider​s);
+PHP_FUNCTION(svn_cl​ient_auth_open);
+PHP_FUNCTION(svn_cl​ient_create_context)​;
+PHP_FUNCTION(svn_cl​ient_set_context_fie​ld);
+PHP_FUNCTION(svn_cl​ient_checkout);

Added: trunk/php_svn_client.vcproj
Url: http://php-svn-clien​t.tigris.org/source/​browse/php-svn-clien​t/trunk/php_svn_clie​nt.vcproj?view=auto​&rev=3
====================​====================​====================​==================
--- (empty file)
+++ trunk/php_svn_client.vcproj 2006-12-04 09:32:59-0800
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="windows-1251"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="7.10"
+ Name="php_svn_client"
+ ProjectGUID="{7ED092​E1-038E-4578-A1B6-36​2C8C125814}"
+ Keyword="Win32Proj">
+ <Platforms>
+ <Platform
+ Name="Win32"/>
+ </Platforms>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="Debug"
+ IntermediateDirectory="Debug"
+ ConfigurationType="2"
+ CharacterSet="2">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ InlineFunctionExpansion="1"
+ AdditionalIncludeDir​ectories="php\win32​;php\main;php\TSRM​;php\Zend;php"
+ PreprocessorDefiniti​ons="WIN32;_DEBUG;_W​INDOWS;_USRDLL;PHP_S​VN_CLIENT_EXPORTS"
+ StringPooling="TRUE"
+ MinimalRebuild="TRUE"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="1"
+ BufferSecurityCheck="TRUE"
+ EnableFunctionLevelL​inking="TRUE"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabili​tyProblems="FALSE"
+ DebugInformationFormat="4"/>
+ <Tool
+ Name="VCCustomBuildTool"/>
+ <Tool
+ Name="VCLinkerTool"
+ OutputFile="$(OutDi​r)/php_svn_client.dl​l"
+ LinkIncremental="1"
+ SuppressStartupBanner="TRUE"
+ GenerateDebugInformation="TRUE"
+ ProgramDatabaseFile=​"$(OutDir)/php_svn_​client.pdb"
+ SubSystem="0"
+ OptimizeReferences="0"
+ EnableCOMDATFolding="0"
+ ImportLibrary=""
+ TargetMachine="1"/>
+ <Tool
+ Name="VCMIDLTool"/>
+ <Tool
+ Name="VCPostBuildEve​ntTool"/>
+ <Tool
+ Name="VCPreBuildEventTool"/>
+ <Tool
+ Name="VCPreLinkEventTool"/>
+ <Tool
+ Name="VCResourceComp​ilerTool"/>
+ <Tool
+ Name="VCWebServicePr​oxyGeneratorTool"/​>
+ <Tool
+ Name="VCXMLDataGener​atorTool"/>
+ <Tool
+ Name="VCWebDeploymentTool"/>
+ <Tool
+ Name="VCManagedWrapp​erGeneratorTool"/​>
+ <Tool
+ Name="VCAuxiliaryMan​agedWrapperGenerator​Tool"/>
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="Release"
+ IntermediateDirectory="Release"
+ ConfigurationType="2"
+ CharacterSet="2">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ InlineFunctionExpansion="1"
+ AdditionalIncludeDir​ectories="svn\inclu​de\apr;php\win32;p​hp\main;php\TSRM;p​hp\Zend;php;svn/inc​lude"
+ PreprocessorDefiniti​ons="WIN32;ZEND_DEBU​G=0;NDEBUG;_WINDOWS;​_USRDLL;ZEND_WIN32;P​HP_WIN32;ZTS=1"
+ StringPooling="TRUE"
+ RuntimeLibrary="0"
+ BufferSecurityCheck="TRUE"
+ EnableFunctionLevelL​inking="TRUE"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabili​tyProblems="FALSE"
+ DebugInformationFormat="3"/>
+ <Tool
+ Name="VCCustomBuildTool"/>
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependenci​es="php/dev/php5ts.l​ib svn/lib/apr/libapr.lib svn/lib/apr-util/libaprutil.lib svn/lib/apr-util/xml.lib svn/lib/neon/libneon.lib svn/lib/libsvn_client-1.lib svn/lib/libsvn_delta-1.lib svn/lib/libsvn_diff-1.lib svn/lib/libsvn_fs-1.lib svn/lib/libsvn_fs_base-1.lib svn/lib/libsvn_fs_fs-1.lib svn/lib/libsvn_subr-1.lib svn/lib/libsvn_wc-1.lib svn/lib/libsvn_ra-1.lib svn/lib/libsvn_ra_dav-1.lib svn/lib/libsvn_ra_local-1.lib svn/lib/libsvn_ra_svn-1.lib svn/lib/libsvn_repos-1.lib intl/lib/intl3_svn.lib db/lib/libdb43.lib ws2_32.lib"
+ OutputFile="$(OutDi​r)/php_svn_client.dl​l"
+ LinkIncremental="2"
+ SuppressStartupBanner="FALSE"
+ IgnoreAllDefaultLibr​aries="FALSE"
+ IgnoreDefaultLibrary​Names="LIBCMT"
+ GenerateDebugInforma​tion="FALSE"
+ SubSystem="1"
+ OptimizeReferences="0"
+ EnableCOMDATFolding="0"
+ ImportLibrary=""
+ TargetMachine="1"/>
+ <Tool
+ Name="VCMIDLTool"/>
+ <Tool
+ Name="VCPostBuildEve​ntTool"/>
+ <Tool
+ Name="VCPreBuildEventTool"/>
+ <Tool
+ Name="VCPreLinkEventTool"/>
+ <Tool
+ Name="VCResourceComp​ilerTool"/>
+ <Tool
+ Name="VCWebServicePr​oxyGeneratorTool"/​>
+ <Tool
+ Name="VCXMLDataGener​atorTool"/>
+ <Tool
+ Name="VCWebDeploymentTool"/>
+ <Tool
+ Name="VCManagedWrapp​erGeneratorTool"/​>
+ <Tool
+ Name="VCAuxiliaryMan​agedWrapperGenerator​Tool"/>
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cxx;de​f;odl;idl;hpj;bat;as​m;asmx"
+ UniqueIdentifier="{4​FC737F1-C7A5-4376-A0​66-2A32D752A2FF}"​>
+ <File
+ RelativePath=".\php​_svn_client.c">
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm​;inl;inc;xsd"
+ UniqueIdentifier="{9​3995380-89BD-4b04-88​EB-625FBE52EBFB}"​>
+ <File
+ RelativePath=".\php​_svn_client.h">
+ </File>
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;b​mp;dlg;rc2;rct;bin;r​gs;gif;jpg;jpeg;jpe;​resx"
+ UniqueIdentifier="{6​7DA6AB6-F800-4c08-8B​7A-83BB121AAD01}"​>
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>

Added: trunk/svn_client.ncb
Url: http://php-svn-clien​t.tigris.org/source/​browse/php-svn-clien​t/trunk/svn_client.n​cb?view=auto&rev​=3
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/svn_client.sln
Url: http://php-svn-clien​t.tigris.org/source/​browse/php-svn-clien​t/trunk/svn_client.s​ln?view=auto&rev​=3
====================​====================​====================​==================
--- (empty file)
+++ trunk/svn_client.sln 2006-12-04 09:32:59-0800
@@ -0,0 +1,21 @@
+Microsoft Visual Studio Solution File, Format Version 8.00
+Project("{8BC9CEB8-​8B4A-11D0-8D11-00A0C​91BC942}") = "php_svn_client", "php_svn_client.vcproj", "{7ED092E1-038E-4578​-A1B6-362C8C125814}"​
+ ProjectSection(Proje​ctDependencies) = postProject
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(Soluti​onConfiguration) = preSolution
+ Debug = Debug
+ Release = Release
+ EndGlobalSection
+ GlobalSection(Projec​tConfiguration) = postSolution
+ {7ED092E1-038E-4578-​A1B6-362C8C125814}.D​ebug.ActiveCfg = Release|Win32
+ {7ED092E1-038E-4578-​A1B6-362C8C125814}.D​ebug.Build.0 = Release|Win32
+ {7ED092E1-038E-4578-​A1B6-362C8C125814}.R​elease.ActiveCfg = Release|Win32
+ {7ED092E1-038E-4578-​A1B6-362C8C125814}.R​elease.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(Extens​ibilityGlobals) = postSolution
+ EndGlobalSection
+ GlobalSection(Extens​ibilityAddIns) = postSolution
+ EndGlobalSection
+EndGlobal

Added: trunk/tests/quickstart.php
Url: http://php-svn-clien​t.tigris.org/source/​browse/php-svn-clien​t/trunk/tests/quicks​tart.php?view=auto​&rev=3
====================​====================​====================​==================
--- (empty file)
+++ trunk/tests/quickstart.php 2006-12-04 09:32:59-0800
@@ -0,0 +1,17 @@
+<?php
+ $r=svn_client_version();
+ print_r($r);
+
+ $context = svn_client_create_context();
+ print_r($context);
+
+ $providers = svn_client_create_pr​oviders($r);
+ print_r($providers);
+
+ $auth_baton = svn_client_auth_open​($providers, "turin", "turinturin");
+ print_r($auth_baton);
+
+ $context = svn_client_set_conte​xt_field($context, "auth_baton", $auth_baton);
+
+ svn_client_checkout("https://172.26.40.85/svn/KG810", "C:\\KG810wc", $context);
+?>
\ No newline at end of file

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r3 - trunk: . tests fedortyurin Fedor Tyurin 2006-12-04 09:33:01 PST
Messages per page: