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

Re: svn commit: r1227828 - in /subversion/trunk/tools/examples: SvnCLBrowse get-location-segments.py

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Thu, 05 Jan 2012 16:00:50 -0500

On 01/05/2012 03:54 PM, danielsh_at_apache.org wrote:
> Author: danielsh
> Date: Thu Jan 5 20:54:09 2012
> New Revision: 1227828
>
> URL: http://svn.apache.org/viewvc?rev=1227828&view=rev
> Log:
> Fix the swig-py examples.
>
> When trying to run the get-location-segments.py, it throws:
>
> TypeError: Unexpected NULL parent pool on proxy object
>
> Somehow, the "_parent_pool" property wasn't initialized on the context.
> Not sure how this works, but creating a context using
> client.svn_client_create_context() instead of client.ctx_t() (which
> subversion/bindings/swig/python/tests/pool.py also does) fixes this
> error and makes the example work again.

I'm not sure what changed since the days when this construct worked, but
I've seen exactly this symptom (and exactly this solution) before in another
context[1], so ... +1.

-- C-Mike

[1] The context should hint that "context" here doesn't refer to the
    problematic context object. ¿Comprendes?

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2012-01-05 22:01:33 CET

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.