Rev 956: Wrap more ra functions/types. in file:///data/jelmer/bzr-svn/pyrex/
Jelmer Vernooij
jelmer at samba.org
Thu Mar 13 14:35:53 GMT 2008
At file:///data/jelmer/bzr-svn/pyrex/
------------------------------------------------------------
revno: 956
revision-id:jelmer at samba.org-20080313143553-dwpbwylaghuxl7h7
parent: jelmer at samba.org-20080313142422-5m1mcqhhkgi9gn2g
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: pyrex
timestamp: Thu 2008-03-13 15:35:53 +0100
message:
Wrap more ra functions/types.
modified:
ra.pyx ra.pyx-20080313140933-qybkqaxe3m4mcll7-1
transport.py transport.py-20060406231150-b3472d06b3a0818d
=== modified file 'ra.pyx'
--- a/ra.pyx 2008-03-13 14:23:55 +0000
+++ b/ra.pyx 2008-03-13 14:35:53 +0000
@@ -15,19 +15,65 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
cdef extern from "svn_version.h":
- ctypedef struct svn_version_t:
- int major
- int minor
- int patch
- char *tag
+ ctypedef struct svn_version_t:
+ int major
+ int minor
+ int patch
+ char *tag
+
+cdef extern from "svn_error.h":
+ ctypedef struct svn_error_t
+
+cdef extern from "apr_pools.h":
+ ctypedef struct apr_pool_t
+
+cdef extern from "apr_hash.h":
+ ctypedef struct apr_hash_t
cdef extern from "svn_ra.h":
- svn_version_t *svn_ra_version()
+ svn_version_t *svn_ra_version()
+
+ ctypedef struct svn_ra_reporter2_t:
+ svn_error_t *(*set_path)(void *report_baton,
+ char *path,
+ long revision,
+ int start_empty,
+ char *lock_token,
+ apr_pool_t *pool)
+
+ svn_error_t *(*delete_path)(void *report_baton,
+ char *path, apr_pool_t *pool)
+
+ svn_error_t *(*link_path)(void *report_baton,
+ char *path,
+ char *url,
+ long revision,
+ int start_empty,
+ char *lock_token,
+ apr_pool_t *pool)
+
+ svn_error_t *(*finish_report)(void *report_baton, apr_pool_t *pool)
+
+ svn_error_t *(*abort_report)(void *report_baton, apr_pool_t *pool)
+
+ ctypedef struct svn_ra_callbacks2_t
+
+ ctypedef struct svn_ra_session_t
+
+ svn_error_t *svn_ra_open2(svn_ra_session_t **session_p,
+ char *repos_URL,
+ svn_ra_callbacks2_t *callbacks,
+ void *callback_baton,
+ apr_hash_t *config,
+ apr_pool_t *pool)
+
def version():
- """Get libsvn_ra version information.
-
- :return: tuple with major, minor, patch version number and tag.
- """
- return (svn_ra_version().major, svn_ra_version().minor,
- svn_ra_version().minor, svn_ra_version().tag)
+ """Get libsvn_ra version information.
+
+ :return: tuple with major, minor, patch version number and tag.
+ """
+ return (svn_ra_version().major, svn_ra_version().minor,
+ svn_ra_version().minor, svn_ra_version().tag)
+
+
=== modified file 'transport.py'
--- a/transport.py 2008-03-12 15:01:25 +0000
+++ b/transport.py 2008-03-13 14:35:53 +0000
@@ -22,7 +22,7 @@
from bzrlib.transport import Transport
from svn.core import SubversionException, Pool
-import svn.ra
+import ra
import svn.core
import svn.client
More information about the bazaar-commits
mailing list