Bug 39757

Summary: Some compare operations fail on resources that do not exist
Product: [Eclipse Project] Platform Reporter: Michael Valenta <Michael.Valenta>
Component: CompareAssignee: Andre Weinand <andre_weinand>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 39148    

Description Michael Valenta CLA 2003-07-08 11:00:37 EDT
The Live Synchronize view can contain resources that do not exist locally. 
This has surfaced some problems in objectContributions that assume that all 
resources in a selection exist. To reproduce the test setup, load a project 
from CVS and delete a folder containing files. The outgoing deletions should 
appear in the Live Sync View (the folder will appear without the outgoing 
deletion icon).

Here is the list of compare operations and the test results. Either these 
operations should work or the menu operation should be disabled for non-
exitant resources.

- Replace With>Local History brings up the selection dialog which appears to 
work. However, chossing Replace fails with the error "resource does not 
exist". 

- Replace with>Previous from Local History also fails with "resource does not 
exist.

- Restore from Local History works when performed on a deleted folder 
containing outgoing deleted files works

- Compare with>Each other fails when on of the resources doesn't exist (the 
resulting editor contains an Internal Error message.

- Team>Apply Patch is disabled for non-existant resources so it is OK.
Comment 1 Andre Weinand CLA 2003-08-25 17:57:09 EDT
Fix released for N20030826