Bug 136502

Summary: "Apply Patch" doesn't work for older repository providers
Product: [Eclipse Project] Platform Reporter: Michael Schneider <michschn>
Component: CompareAssignee: Andre Weinand <andre_weinand>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch for scheduling rules none

Description Michael Schneider CLA 2006-04-12 19:55:47 EDT
When using a Team provider that does not overwrite RepositoryProvider.getRuleFactory(), the "Apply Patch" functionality breaks.
This seems to be because PatchWizard.java gets a ISchedulingRule for the projects (around line 107 in M5), however Patcher.java:914 calls IFile.setContent() which eventually tries to acquire a root ISchedulingRule due to the PessimisticResourceRuleFactory.
Comment 1 Bogdan Gheorghe CLA 2006-04-24 11:05:13 EDT
Created attachment 39281 [details]
Patch for scheduling rules
Comment 2 Michael Valenta CLA 2006-04-25 17:23:50 EDT
Moving to Compare. It would be nice to have this for 3.2.
Comment 3 Andre Weinand CLA 2006-04-25 18:05:34 EDT
Patch reviewed, formatted, and applied for > 20060425
Thanks Bogdan!