[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: setting ra_callbacks.open_tmp_file from python bindings?

From: Gregory (Grisha) Trubetskoy <grisha_at_apache.org>
Date: 2006-05-25 21:39:37 CEST

On Tue, 23 May 2006, Jelmer Vernooij wrote:

>> ...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.

I think I found the answer to my question. Instead of doing what I saw in
viewvc, i.e.:

# ...create ctx
# ...create ra_callbacks
ra_session = ra.svn_ra_open(url, ra_callbacks, None, ctx.config)

one can do:

# ...create ctx
ra_session = client.open_ra_session(url, ctx)

HTH someone. We'll see what problem I'll run into next :-)

P.S. If I'm on the wrong list for this level of discussion - please don't
hesitate to tell me (and suggesting the right one would be much
appreciated too).

Grisha

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 25 21:40:17 2006

This is an archived mail posted to the Subversion Dev mailing list.