Rev 1273: Fix reference handling. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4

Jelmer Vernooij jelmer at samba.org
Sun Jun 22 17:06:15 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/0.4

------------------------------------------------------------
revno: 1273
revision-id: jelmer at samba.org-20080622160612-d15p74vl9t3q14jd
parent: jelmer at samba.org-20080622143150-u6rouaak2ejz0quq
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Sun 2008-06-22 18:06:12 +0200
message:
  Fix reference handling.
modified:
  ra.c                           ra.pyx-20080313140933-qybkqaxe3m4mcll7-1
=== modified file 'ra.c'
--- a/ra.c	2008-06-22 06:14:38 +0000
+++ b/ra.c	2008-06-22 16:06:12 +0000
@@ -506,6 +506,7 @@
 	return false;
 }
 
+#if SVN_VER_MAJOR >= 1 && SVN_VER_MINOR >= 5
 static svn_error_t *py_get_client_string(void *baton, const char **name, apr_pool_t *pool)
 {
 	RemoteAccessObject *self = (RemoteAccessObject *)baton;
@@ -525,6 +526,7 @@
 
 	return NULL;
 }
+#endif
 
 static svn_error_t *py_open_tmp_file(apr_file_t **fp, void *callback,
 									 apr_pool_t *pool)
@@ -1434,6 +1436,7 @@
     auth->pool = Pool(NULL);
 	if (auth->pool == NULL)
 		return NULL;
+	Py_INCREF(prompt_func);
     svn_auth_get_username_prompt_provider(&auth->provider, py_username_prompt, (void *)prompt_func, retry_limit, auth->pool);
     return (PyObject *)auth;
 }
@@ -1464,6 +1467,7 @@
     auth->pool = Pool(NULL);
 	if (auth->pool == NULL)
 		return NULL;
+	Py_INCREF(prompt_func);
     svn_auth_get_simple_prompt_provider (&auth->provider, py_simple_prompt, (void *)prompt_func, retry_limit, auth->pool);
     return (PyObject *)auth;
 }
@@ -1503,6 +1507,7 @@
     auth->pool = Pool(NULL);
 	if (auth->pool == NULL)
 		return NULL;
+	Py_INCREF(prompt_func);
     svn_auth_get_ssl_server_trust_prompt_provider (&auth->provider, py_ssl_server_trust_prompt, (void *)prompt_func, auth->pool);
     return (PyObject *)auth;
 }
@@ -1534,6 +1539,7 @@
     auth->pool = Pool(NULL);
 	if (auth->pool == NULL)
 		return NULL;
+	Py_INCREF(prompt_func);
     svn_auth_get_ssl_client_cert_pw_prompt_provider (&auth->provider, py_ssl_client_cert_pw_prompt, (void *)prompt_func, retry_limit, auth->pool);
     return (PyObject *)auth;
 }




More information about the bazaar-commits mailing list