subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bert Huijben" <b...@qqmail.nl>
Subject RE: svn blame not working for files which had binary mime-type in a previous revision
Date Tue, 12 Feb 2013 20:25:09 GMT


> -----Original Message-----
> From: MARTIN PHILIP [mailto:codematters@ntlworld.com] On Behalf Of
> Philip Martin
> Sent: dinsdag 12 februari 2013 19:30
> To: Bert Huijben
> Cc: Ferenc Kovacs; dev@subversion.apache.org
> Subject: Re: svn blame not working for files which had binary mime-type in a
> previous revision
> 
> I'm still not clear what would go wrong.

>From an earlier mail (copied from below):
>> Suppose I have a file that really was binary in the past, perhaps a
>> shell script that used to be an ELF binary.  When blame reaches the
>> binary revision the binary data is likely to get treated as one or more
>> lines of text, none of which match the current text.  At that point the
>> blame algorithm is complete.  Isn't that the right answer?

This assumes that we blame backwards, while we really run blame forwards.

For many cases running it backwards would be more efficient (e.g. you could just ask for the
lines in  the last 100 changed revisions)... Or in your own code stop when one specific interesting
line gets changed and cancel the incoming data.

But that requires extending the api that is below the svn_ra_file_revisions() api to allow
passing a reversed range.

	Bert 


Mime
View raw message