Bug 93276 - Deleting the copy of a project destroys history of original project
Summary: Deleting the copy of a project destroys history of original project
Status: RESOLVED DUPLICATE of bug 79398
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-29 11:25 EDT by Martin Burger CLA
Modified: 2005-04-29 15:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Burger CLA 2005-04-29 11:25:20 EDT
Overview Description:

If you create a copy of a project and delete the copy, the content of the states
in local history of both projects (original and copy) will get lost while shutdown.


Steps to Reproduce:

1. Create project called 'orig' (simple project is OK).

2. Create file 'foo.txt' in project 'orig'.

3. Modifiy 'foo.txt' to get some states in local history.

4. Copy project 'orig' to new project 'Copy of orig'.

Now, you have all the states of 'foo.txt' in both projects (use "compare with
local history" to verify).

5. Delete project 'Copy of orig'.

6. Shutdown Eclipse.

7. Start Eclipse.

9. Compare 'foo.txt' in project 'orig' with local history using "compare with
local history"


Actual Results:

Now, you see the list of states of 'foo.txt' (timestamps), but the text compare
says: "State is not valid or might have expired".


Expected Results:

Text compare should show the corresponding diff.


Additional Information:

The method

    public InputStream getContents(IFileState target)

in

    org.eclipse.core.internal.localstore.FileState

throws

    ResourceException(IResourceStatus.FAILED_READ_LOCAL, target.getFullPath(),
message, null);

because IFileState target does not exist.
Comment 1 Rafael Chaves CLA 2005-04-29 15:37:08 EDT

*** This bug has been marked as a duplicate of 79398 ***