Re: Cancelling location segments operation from callback

2014-01-26 Thread Martin Panter
Hello again Unfortunately I ran into trouble trying to implement the cancel callback in the Subvertpy library. The library passes a temporary pool to svn_ra_get_location_segments(), and then destroys the pool when the call returns. However this seems to be causing a segfault in the subsequent call

Re: Cancelling location segments operation from callback

2014-01-25 Thread Martin Panter
Thanks for your explanation Branko and hint about using the cancellation callback. I modified my C code to use it and it seems to do what I want. Unfortunately it doesn’t look like I can set the cancel callback with the Subvertpy library that I’m using, but I’ll see if I can add support for it. Ma

Cancelling location segments operation from callback

2014-01-25 Thread Martin Panter
This is a followup from my message from a couple months ago: http://svn.haxx.se/users/archive-2013-11/0165.shtml Basically, I was trying to cancel an svn_ra_get_location_segments() call by returning an error from the callback. The API call seems to finish straight away as I expect, but when I subs

svn_ra_get_log2() fails after cancelling svn_ra_get_location_segments() in 1.8.3

2013-11-20 Thread Martin Panter
I have a Python program using Subvertpy that worked with Subversion 1.7.8, but is failing in 1.8.3. I’m not familiar with the actual Subversion API so I haven’t tried turning it into C code, but I have pasted my simplified Python code below, in case someone can translate it to test out. This is wh