Hi Gregory,
On Tue, 2006-05-23 at 16:25 -0400, Gregory (Grisha) Trubetskoy wrote:
> 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
> to add a file. There are plenty of examples of doing this with 'fs', but I want
> 'ra', because I want to be able to talk to a remote server.
>
> So it looks like in order for delta.editor_invoke_apply_textdelta() to work,
> the open_tmp_file needs to be set in the callbacks, or you will get a segfault
> in:
>
> subversion/libsvn_ra_dav/commit.c:1339
>
> /* Use the client callback to create a tmpfile. */
> SVN_ERR(file->cc->ras->callbacks->open_tmp_file
> (&baton->tmpfile,
> file->cc->ras->callback_baton,
> file->pool));
>
> ...because file->cc->ras->callbacks->open_tmp_file is null, unless you set it
> to something.
>
> But can you set it from python? I tried (based on a comment I saw in swig
> bindings somewhere):
At the moment, you can't, indeed. I've got a half finished patch that
implements this, but I haven't bothered to finish it yet. I'll try to
send an updated one to this list tomorrow.
As far as I know, doing things like this from the Python bindings hasn't
ever worked (yet), so there might be other problems once opening
temporary files works.
Cheers,
Jelmer.
--
Jelmer Vernooij <jelmer_at_samba.org> - http://samba.org/~jelmer/
Received on Tue May 23 23:31:50 2006