Rev 1006: Initialize batons to NULL to make debugging easier. in file:///data/jelmer/bzr-svn/pyrex/
Jelmer Vernooij
jelmer at samba.org
Tue Mar 18 02:15:39 GMT 2008
At file:///data/jelmer/bzr-svn/pyrex/
------------------------------------------------------------
revno: 1006
revision-id:jelmer at samba.org-20080318021538-3lcdpw11pb6u7ldt
parent: jelmer at samba.org-20080318020716-zaxpm72bkxamv93x
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: pyrex
timestamp: Tue 2008-03-18 03:15:38 +0100
message:
Initialize batons to NULL to make debugging easier.
modified:
ra.pyx ra.pyx-20080313140933-qybkqaxe3m4mcll7-1
=== modified file 'ra.pyx'
--- a/ra.pyx 2008-03-18 01:11:12 +0000
+++ b/ra.pyx 2008-03-18 02:15:38 +0000
@@ -530,6 +530,7 @@
return NULL
cdef svn_error_t *py_editor_open_root(void *edit_baton, svn_revnum_t base_revision, apr_pool_t *dir_pool, void **root_baton) except *:
+ root_baton[0] = NULL
self = <object>edit_baton
ret = self.open_root(base_revision)
Py_INCREF(ret)
@@ -542,6 +543,7 @@
return NULL
cdef svn_error_t *py_editor_add_directory(char *path, void *parent_baton, char *copyfrom_path, long copyfrom_revision, apr_pool_t *dir_pool, void **child_baton) except *:
+ child_baton[0] = NULL
self = <object>parent_baton
if copyfrom_path == NULL:
ret = self.add_directory(path)
@@ -552,6 +554,7 @@
return NULL
cdef svn_error_t *py_editor_open_directory(char *path, void *parent_baton, long base_revision, apr_pool_t *dir_pool, void **child_baton) except *:
+ child_baton[0] = NULL
self = <object>parent_baton
ret = self.open_directory(path, base_revision)
Py_INCREF(ret)
@@ -578,6 +581,7 @@
return NULL
cdef svn_error_t *py_editor_add_file(char *path, void *parent_baton, char *copy_path, long copy_revision, apr_pool_t *file_pool, void **file_baton) except *:
+ file_baton[0] = NULL
self = <object>parent_baton
if copy_path == NULL:
ret = self.add_file(path)
@@ -588,6 +592,7 @@
return NULL
cdef svn_error_t *py_editor_open_file(char *path, void *parent_baton, long base_revision, apr_pool_t *file_pool, void **file_baton) except *:
+ file_baton[0] = NULL
self = <object>parent_baton
ret = self.open_file(path, base_revision)
Py_INCREF(ret)
@@ -611,6 +616,7 @@
cdef svn_error_t *py_editor_apply_textdelta(void *file_baton, char *base_checksum, apr_pool_t *pool, svn_txdelta_window_handler_t *handler, void **handler_baton) except *:
+ handler_baton[0] = NULL
self = <object>file_baton
if base_checksum == NULL:
ret = self.apply_textdelta()
More information about the bazaar-commits
mailing list