David James wrote:
> On 10/4/05, Max Bowsher <maxb@ukf.net> wrote:
>>>>> svn.wc.entry('nonexistentpath', aa, False)
>> <libsvn.core.GenericSWIGWrapper instance at 0x5d820c>
>>
>> The problem is with functions that deliberately return a NULL pointer to
>> signify "does not exist".
>> The correct Python translation of this would be None, but the bindings
>> are
>> incorrectly returning an internal wrapper object. This is bad, because
>> any
>> code making any real use of svn_wc_entry will be testing the return value
>> either for truth or None-ness in order to tell whether the entry was
>> found,
>> and this will break that.
> Good catch, Max! This should be fixed in r16450.
Thanks for the quick fix.
I've committed a small followup in r16454 and nominated both for backport.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 4 18:48:01 2005