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

Re: [PATCH] Allow "cease invocation" return from Python callback for repos.svn_repos_history2()

From: Alexey Neyman <stilor_at_att.net>
Date: Thu, 18 Mar 2010 18:02:01 -0700

On Thursday 18 March 2010 05:31:25 pm Роман Донченко wrote:
> Alexey Neyman <stilor_at_att.net> писал в своём письме Fri, 19 Mar 2010
>
> 02:26:28 +0300:
> >> Hmm. How are you testing this? I'd write a test script, but I'm
> >> short on time, and you probably already have one. 8=]
> >
> > Yes, please use the attached pre-commit script. Then:
> >
> > ...
> >
> >
> > Changed to the following code (difference from previous version is
> > that it
> > Py_DECREF's everything):
> >
> > ...
> >
> > if (PyErr_GivenExceptionMatches(exc_class, err))
>
> I will investigate more carefully later, but you've got this the wrong
> way around. The exception should be the first argument, and the class
> should be the second. The doc for PyErr_GivenExceptionMatches is kind
> of ambiguous, but see the doc for PyErr_ExceptionMatches.

Thanks for catching it. However, it does not change anything.

Regards,
Alexey.
Received on 2010-03-19 02:02: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.