tags:

views:

2089

answers:

4

Hi guys, I discover yesterday the SVN blame feature and I was wondering, Is this feature available from eclipse? Thanks,

A: 

As you probably know, Eclipse does not currently support SVN out of the box. From what I have read in the past, that is going to change and they have decided to include Subversive plugin in later versions. I am not sure if this will be in the next version or not.

But to answer your question, the current version of Subversive does not support the praise or blame commands. I would let the developers of Subversive know that is a feature you would like to see.

Subversive is located at http://www.eclipse.org/subversive

rwfuller
Not true: Under the "Team" sub-menu of the right-click (context) menu of a resource, you can select "Show Annotation" to see this information.
rjray
A: 

Hi, Yes, probably I didn´t ask the question properly, that was what I was meaning, If there is any eclipse plugin as Subversive that support that feature. I have remember that reading this post and would be great, at the moment the way that i am doing this is looking at the history and using the Diff option of eclipse , but anyway a view as the one shown in the post of Jeff will be great. Thanks.

David Santamaria
+15  A: 

As was pointed out, you would currently have to first install a plug-in to enable Subversion support. I recommend Subversive, myself, and a search here on SO for the tags "eclipse" and "subversion" together will show several previous threads regarding "gotchas" to watch out for when installing the connectors (Subversive is separated into two parts-- the core support and "connectors" that provide the svn glue).

Once you have that installed, you can configure repositories, create new projects by directly entering a new repo address and checking it out, or associate an existing project that was already attached to svn with the repo by have Subversion look it over.

Once you've done that, this is how you access the "svn blame" command, also known as "annotate" or "praise": For a resource, right click on the resource name in the file-explorer pane to pop-up the context menu (you can also get this menu by right-clicking anywhere in the editor itself). Under the "Team" heading (which is also where you access all the svn commands, as Eclipse generalizes source control under the heading of "Team Sharing"), select "Show Annotation". On my Mac Powerbook, the keyboard shortcut for this is Ctrl-Option-A, I'm not near my Linux or WinXP platforms to see what the shortcut us on either of them (MacOS X ports tend to tweak keyboard shortcuts to adhere to the "greater good" view of what a Mac app should do).

After a bit of time conversing with the subversion repo, the left-gutter of the editor window will show a series of colored bars. If you have line-numbers enabled for your editor, these will overlay the numbers. Otherwise, they'll just be bars. Each alternation of color represents a break where responsibility changes from one user to another. If you hover the pointer over a bar, a tooltip will appear identifying the responsible user, the revision/commit that the lines are from, date and the check-in comment. The color of the bars will vary from committer to committer, and revision to revision. They'll be varying shades of the same base color, but Eclipse will try to make them visually distinct (as much as possible). When you're hovering over a snippet, it highlights slightly, and all other bars that are tied to the same revision will also highlight.

(Now, don't ask me how to turn it off. Thus far, my only solution has been to close the buffer and re-open it!)

rjray
Great! I have been using Subversive for ages and never realize about the "Show Annotation" feature, that exactly that i was looking for, thanks!
David Santamaria
Great explanation thanks :) To turn it off you can right click the highlighting at the left and click Revisions > Hide Revision Information. This is also where you can specify how it colours annotations. I'm fond of the Combined Coloring, so I can have each contributor a different colour and older revisions by the same comitter a lighter shade of that colour.
Kenny
FYI, the identical process works for Subclipse.
Chris S
A: 

We use this feature very often, but are experiencing slowdowns. When using it in Trac it is way faster than in Eclipse with Subversive. Does anyone know a reason for this behavior?

Nils Drews