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