SVN Blame: who removed that line? →

This utility was very useful tonight.  I wanted to find what revision a certain line was removed from a file in the core WordPress SVN repository.  It took a relatively long time to run (15 mins or so), but I’m guessing that’s because it was searching through nearly 6,000 revisions to the repository.

It’s such a handy script because it outputs what revision the line was added, but also when it was removed.

Here’s how I used it:

$ cd wp-includes;
$ python blameall.py -r 17201:HEAD media.php

Many props to Ned Batchelder