Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348601

Summary: How to see history for deleted file.
Product: [Technology] EGit Reporter: rmazurak
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r, matthias.sohn, robin
Version: 0.12   
Target Milestone: 3.2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 418275    
Bug Blocks:    

Description rmazurak CLA 2011-06-07 11:48:27 EDT
Build Identifier: 0.12.1

There is no way to select "show in history" for deleted file. I propose to add "show in history" popup menu for files in history view in bottom right pane.

Reproducible: Always

Steps to Reproduce:
1. delete file
2. make commit
3. try to open history for deleted file
Comment 1 Andrew Gvozdev CLA 2011-06-09 09:39:25 EDT
There is Team->"Restore from Repository" in CVS plugin if it's of any help.
Comment 2 rmazurak CLA 2011-06-14 11:53:05 EDT
(In reply to comment #1)
> There is Team->"Restore from Repository" in CVS plugin if it's of any help.

Why CVS plugin ?
Comment 3 Markus Keller CLA 2011-10-13 10:46:51 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > There is Team->"Restore from Repository" in CVS plugin if it's of any help.
> 
> Why CVS plugin ?

As a pointer for the developers to show what existing Eclipse users would expect. Bug 359880 requests "Restore from Repository" in Git.
Comment 4 Robin Stocker CLA 2013-09-29 12:21:07 EDT
Fix for allowing Show In > History when selecting the file in the commit viewer: https://git.eclipse.org/r/16862

When opening the "Show In" menu from the history view itself, "History" is not part of the views to select, even when explicitly adding it via IShowInTargetList. I opened bug 418275 against Platform UI to discuss this.

A workaround would be to add a custom menu item "Show History".
Comment 5 Matthias Sohn CLA 2013-10-22 18:05:06 EDT
(In reply to Robin Stocker from comment #4)
> Fix for allowing Show In > History when selecting the file in the commit
> viewer: https://git.eclipse.org/r/16862

merged as c72697e89275e2e75744b515d9c5f4d569766fe7

> When opening the "Show In" menu from the history view itself, "History" is
> not part of the views to select, even when explicitly adding it via
> IShowInTargetList. I opened bug 418275 against Platform UI to discuss this.
> 
> A workaround would be to add a custom menu item "Show History".

I propose we add a custom menu as a workaround
Comment 6 Robin Stocker CLA 2013-10-23 18:04:30 EDT
(In reply to Matthias Sohn from comment #5)
> > When opening the "Show In" menu from the history view itself, "History" is
> > not part of the views to select, even when explicitly adding it via
> > IShowInTargetList. I opened bug 418275 against Platform UI to discuss this.
> > 
> > A workaround would be to add a custom menu item "Show History".
> 
> I propose we add a custom menu as a workaround

I pushed a fix for bug 418275 (in Platform UI) to review, let's see if it is merged before doing the workaround.
Comment 7 Robin Stocker CLA 2013-10-27 17:41:54 EDT
The change for bug 418275 was merged. The corresponding change in EGit:

https://git.eclipse.org/r/17809
Comment 8 Matthias Sohn CLA 2013-11-18 17:44:02 EST
merged as df96963ed92bc67e5679dbafdf799a932ad23c7d

Using Luna you can now use "Show in History" from the revision details pane of the history view. In older releases you can use "Show in History" from the commit viewer.