Bug 355465 - List local history entries for a time period across all files
Summary: List local history entries for a time period across all files
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: api, helpwanted
Depends on:
Blocks:
 
Reported: 2011-08-23 03:32 EDT by sssg431 CLA
Modified: 2019-11-14 03:28 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sssg431 CLA 2011-08-23 03:32:30 EDT
Build Identifier: 

Hello Friends

I am going through a serious issue. I have made some changes to some of the files (java code) of one of our projects using Helio's eclipse. I accidentally updated my entire project to Head/Latest code which is present in our server(i.e. a repository where everyday number of people commit their changes). Now, all the changes which I have made in the files are not seen. I am seeing some changes of the files in the local history, but I have been doing a lot of changes in different files from many days and now I don't remember all those files. I couldn't check every file's local history and update them becoz that would be a tough task and there are hundred's of files in server.

Could anyone please help me how to recover those changes.
Note: I have not deleted the files, I have made some changes to some files but didn't commit them. So they are lost. Even if I restore it to the previous point, I cannot get the changes.

Please some one help me.
-Sandeep

Reproducible: Didn't try
Comment 1 Remy Suen CLA 2011-08-23 06:19:54 EDT
I would expect your changes to be visible in the local history but I may be misunderstanding how the local history works.
Comment 2 John Arthorne CLA 2011-08-23 09:25:43 EDT
The problem is he doesn't know what files were changed. I think this is actually a valid request, to have a view on the local history that shows what files were changed within a particular time period. We certainly have that data in the history store index.

Unfortunately we don't have this today or in Helios, so this doesn't help you. One thing you can try is perform a search in the following folder:

workspace/.metadata/.plugins/org.eclipse.core.resources/.history

All of the files are in sub-folders of that directory. Your O/S search tool should allow you to browse by modification date or to see a list of files in chronological order by last modified time.
Comment 3 Szymon Brandys CLA 2011-08-23 12:24:31 EDT
So the request is for new UI to show files changed within a particular time period. Since we have this data in resources I'm moving it back to IDE.
Comment 4 sssg431 CLA 2011-08-23 14:58:52 EDT
Thank you very much for every one for your replies.

@John - I have seen the files in the location you have mentioned. I also got some of the files too.

But, I see a strange problems now -

(i) Yesterday night, I have compared some of the files with local history. They were showing some history. But today, I just closed and opened back the eclipse application. Oosh...some of the last files were removed from the workspace/.metadata/.plugins/org.eclipse.core.resources/.history location and new history files pertaining to today's dates are created. 
I was happy to see that the files and its changes were present, but when I closed and opened the eclipse application, the last five or six history files are gone. 

Now, when I compare some fo the files for local history using IDE, they show no history and say that the history is not available.(these files hsowed history yesterday night)

COuld anyone suggest to get back those lost files?Please Please....

-Sandeep
Comment 5 sssg431 CLA 2011-08-23 16:12:02 EDT
Thank you very much for every one for your replies.

@John - I have seen the files in the location you have mentioned. I also got some of the files too.

But, I see a strange problems now -

(i) Yesterday night, I have compared some of the files with local history. They were showing some history. But today, I just closed and opened back the eclipse application. Oosh...some of the last files were removed from the workspace/.metadata/.plugins/org.eclipse.core.resources/.history location and new history files pertaining to today's dates are created. 
I was happy to see that the files and its changes were present, but when I closed and opened the eclipse application, the last five or six history files are gone. 

Now, when I compare some fo the files for local history using IDE, they show no history and say that the history is not available.(these files hsowed history yesterday night)

COuld anyone suggest to get back those lost files?Please Please....

-Sandeep
Comment 6 John Arthorne CLA 2011-08-23 17:11:22 EDT
We have the data in the history store, but no efficient API to find it out. A client could invoke #getHistory on every IFile in the workspace, and then filter the results, but I expect this would be very inefficient. I suggest leaving this request in resources until someone comes along who wants to work on it. It should really have resource API to efficiently compute the list, and UI for displaying it.
Comment 7 Lars Vogel CLA 2019-11-14 03:28:51 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.