Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Subversion web interfaces have a blame feature?

I'm looking for a subversion web client ala SVN::Web but with a very specific feature I've always thought would be quite useful.

What I want is the ability to find which revision was responsible for a certain line (or lines) in a text file. A way to do this via the web would be fantastic.

Anybody know of such a tool?

like image 909
Daniel Beardsley Avatar asked Oct 13 '08 06:10

Daniel Beardsley


4 Answers

I use WebSVN, you can use svn blame from there, and you see who and when added or modified each line of code in a file...

Edit: Here are a pair of screenshots, so you can get an idea:

1, 2

like image 170
Christian C. Salvadó Avatar answered Sep 27 '22 17:09

Christian C. Salvadó


Trac can do this for you. When you view a file, you have an annotate option at the top of the page, which will use ajax to load a bar down the left of the file source, giving the revision numbers for each line (or block, if a block was edited in one commit)

It'd be nice to see something that had a revision history for each line though.

like image 27
Mez Avatar answered Sep 27 '22 17:09

Mez


We use Warehouse, and are quite happy with it. It's written in Ruby on Rails, so if you're well versed in that, you're far ahead of the game. They also just went open source.

like image 34
Nick Sergeant Avatar answered Sep 27 '22 17:09

Nick Sergeant


The SVN::Web interface gives you access to the svn blame annotation(s) on files.

When you're viewing a specific file, you should see "Blame/Annotate" as one of the links in the upper left. When you click on it, you have a much more-marked-up rendition of the file, with blocks in alternating colors. These delinate where contiguous blocks belonging to a given rev start and end. To the left are the user-names of the users whose commits were responsible for a given block, and to the left of that a linked number indicating the revision that the particular block stems from. Clicking on the link will take you to the revision-view page, that lists all the files changed in that revision, along with color-coded diffs of the files/changes themselves.

like image 35
rjray Avatar answered Sep 27 '22 17:09

rjray