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

bug in ruby binding's blame function when author is null

From: Warren Konkel <wkonkel_at_gmail.com>
Date: 2006-05-08 00:27:25 CEST

I've run into a problem when using the blame function from the ruby bindings
where on certain files (not all files). When I run:

file:///usr/local/subversion/repo/path/to/my/file.txt') { |line_no,
revision, author, date, line| }

The bindings are throwing a "NULL pointer given" exception. Here's the

     /usr/lib/ruby/1.8/svn/util.rb:58:in `svn_client_blame2'
     /usr/lib/ruby/1.8/svn/util.rb:58:in `blame2'
     /usr/lib/ruby/1.8/svn/client.rb:321:in `blame'

I believe this exception gets thrown when any of the individual lines making
up the file are credited to a blank (null) author. If I run "svn blame"
from the command line, the author shows up as "-". The bindings appear to
be calling the ruby block with NULL for author and things break.

Received on Mon May 8 00:28:51 2006

This is an archived mail posted to the Subversion Dev mailing list.