Bug 422297 - [blame] "Show annotation" should be also available on commit shown in BlameInformationControl if it's not the latest change of this file
Summary: [blame] "Show annotation" should be also available on commit shown in BlameIn...
Status: ASSIGNED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Matthias Sohn CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 18:05 EST by Matthias Sohn CLA
Modified: 2013-11-26 03:28 EST (History)
1 user (show)

See Also:


Attachments
sample repository (21.86 KB, application/zip)
2013-11-21 18:42 EST, Matthias Sohn CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Sohn CLA 2013-11-21 18:05:43 EST
I tried some more scenarios with the new blame navigation using the new "Show annotations" links. 

When opening annotations for the HEAD version of a file and hovering over a hunk which isn't matching the last change of the file we look at, e.g. a hunk which was changed in the second last change on this file, there is no way to directly open the annotations for the second last change of this file since "Show annotations" link is only available on the predecessor of second last change which is the third last change.

So it seems we should show one more "Show annotations" link  on the commit shown in the hover if the hunk's commit doesn't match the last version of the file we look at.
Comment 1 Matthias Sohn CLA 2013-11-21 18:42:26 EST
Created attachment 237630 [details]
sample repository
Comment 2 Matthias Sohn CLA 2013-11-21 18:49:01 EST
Example using the sample repository:

- unzip and import the sample repository and project
- open class A
- Team > Show Annotations
- hover over second hunk (method a())
- BlameInfo shows commit 1927bf8, fine
- I can open the commit and show it in history view
- I can show annotations for its predecessor 593c38e in a new editor window
- but I cannot directly show 1927bf8 with annotations in a new editor window
Comment 3 Robin Stocker CLA 2013-11-23 11:51:32 EST
Thanks for the example.

(In reply to Matthias Sohn from comment #2)
> - but I cannot directly show 1927bf8 with annotations in a new editor window

You can select the file in the history view and select "Show Annotations".

The thing is, I'm not sure this is really that important to make it accessible from the hover. The opened editor with annotations for 1927bf8 has the same blame information for that hunk as it did in the original editor, right?

But I guess the use case could be "hey, I want to see the contents of the file at that commit because I want to know how the rest of it looked like"?

Ok, so we will add another link on the title line? Like this?:

  Commit 1927bf8 (open commit) (show in history) (show annotations)

And it should only be shown when the annotations are not already for that commit. Do you plan to do that change? :)
Comment 4 Matthias Sohn CLA 2013-11-26 03:28:08 EST
(In reply to Robin Stocker from comment #3)
> Thanks for the example.
> 
> (In reply to Matthias Sohn from comment #2)
> > - but I cannot directly show 1927bf8 with annotations in a new editor window
> 
> You can select the file in the history view and select "Show Annotations".
> 
> The thing is, I'm not sure this is really that important to make it
> accessible from the hover. The opened editor with annotations for 1927bf8
> has the same blame information for that hunk as it did in the original
> editor, right?
> 
> But I guess the use case could be "hey, I want to see the contents of the
> file at that commit because I want to know how the rest of it looked like"?

exactly, this was my reasoning

> Ok, so we will add another link on the title line? Like this?:
> 
>   Commit 1927bf8 (open commit) (show in history) (show annotations)
> 
> And it should only be shown when the annotations are not already for that
> commit. Do you plan to do that change? :)

I'll try to find time :-)