setting ra_callbacks.open_tmp_file from python bindings?
From: Gregory (Grisha) Trubetskoy <grisha_at_apache.org>
Date: 2006-05-23 22:25:45 CEST
First - pardon my subversion python bindings newbieness!!!
This is subversion 1.3.1.
I am attempting to "do stuff" with a repository using 'ra'. For starters trying
So it looks like in order for delta.editor_invoke_apply_textdelta() to work,
subversion/libsvn_ra_dav/commit.c:1339
/* Use the client callback to create a tmpfile. */
...because file->cc->ras->callbacks->open_tmp_file is null, unless you set it
But can you set it from python? I tried (based on a comment I saw in swig
ra_callbacks = ra.svn_ra_callbacks_t()
but that fails with:
TypeError: argument number 2: a 'svn_error_t *(*)(apr_file_t **,void
For more detail, here's what I'm doind in an attempt to just add a file (much
from svn import fs, repos, core, ra, client, delta
ROOT = "http://172.17.1.6/repos/REPO/blah"
ctx = client.svn_client_ctx_t()
ra_callbacks = ra.svn_ra_callbacks_t()
rev = ra.svn_ra_get_latest_revnum(ra_session)
x = ra.svn_ra_get_commit_editor(ra_session,
# we want a new file file in /trunk/script/
root_baton = delta.editor_invoke_open_root(editor, edit_baton, rev)
new_file = delta.editor_invoke_add_file(editor, 'grisha.txt', script_baton,
# this is where it segfaults in subversion/libsvn_ra_dav/commit.c:1339
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.