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

Re: svn commit: r32164 - trunk/subversion/bindings/swig/python/tests

From: David James <james_at_cs.toronto.edu>
Date: Thu, 17 Jul 2008 14:50:09 -0700

On Thu, Jul 17, 2008 at 12:49 PM, <hwright_at_tigris.org> wrote:
> - self.client_ctx.log_msg_func2 = client.svn_swig_py_get_commit_log_func
> - self.client_ctx.log_msg_baton2 = self.log_message_func
> + self.assertEquals(self.client_ctx.log_msg_baton3, None)
> + self.assertEquals(self.client_ctx.log_msg_func3, None)
> + self.client_ctx.log_msg_func3 = client.svn_swig_py_get_commit_log_func
> + self.client_ctx.log_msg_baton3 = self.log_message_func
...
> - self.client_ctx.log_msg_func2(None, self.client_ctx.log_msg_baton2)
> + self.client_ctx.log_msg_func3(None, self.client_ctx.log_msg_baton2)

Shouldn't that be self.client_ctx.log_msg_baton3?

On Thu, Jul 17, 2008 at 1:34 PM, Blair Zajac <blair_at_orcaware.com> wrote:
> So is the real problem is that somewhere either
> client.svn_swig_py_get_commit_log_func or self.log_message_func changed what
> its returning and we were putting this into the wrong client structure.
> But the Python code using the callbacks hasn't changed, so isn't this a break
> in our API? I mean, if I had this code in my own project using 1.4 and it now
> core dumps in going to 1.5.1, isn't that an issue we should fix?

You're right -- and yes, this is a problem.
client.svn_swig_py_get_commit_log_func should be versioned, so that
this kind of code can continue to work.

As you pointed out, it probably makes more sense to update
svn_swig_py_get_commit_log_func to be versioned properly rather than
to work around the problems with it in the test suite.

Cheers,

David

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-17 23:50:38 CEST

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.