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

Re: Bug with http: URLs with functions from the client module in the Python bindings

From: Christian Boos <cboos_at_neuf.fr>
Date: 2006-12-20 23:25:38 CET

David James wrote:
>> > # use blame3, and for that, find a way to get a
>> svn_diff_file_options_t
>> > # instance
>> >
>>
>> ... as the only reference I found to svn_diff_file_options_t in the
>> python bindings was in the docstring of svn_client_blame3.
>>
>> E.g. any hint about this one?
>
>
> Currently, svn_diff_file_options_t is not wrapped, but you could
> probably fix this easily by adding an %include svn_diff_h.swg line to
> swig/core.i in the Python bindings. The Perl bindings already include
> svn_diff_h.swg, but the Python bindings do not.
>
> Once you've added %include svn_diff_h.swg to core.i, you should be
> able to create a svn_diff_file_options_t object by calling
> svn.core.svn_diff_file_create()

Well, it's more about a feature we could use in Trac or not. So we can
tell our users to upgrade to e.g. Subversion 1.4.4 but probably not to
patch their swig/core.i file (ok, we could say that and then hide
quickly...)

The point of using blame3 instead of blame2 is that we have our own
heuristic to decide whether a file is binary or not, so we could decide
to force the blame or not (setting ignore_mime_type to True, as blame2
sets it to False). But that's probably a very minor limitation, so it's
not that important.

Thanks again!

-- Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 20 23:39:09 2006

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.