Bug 136502 - "Apply Patch" doesn't work for older repository providers
Summary: "Apply Patch" doesn't work for older repository providers
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.2 RC2   Edit
Assignee: Andre Weinand CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-12 19:55 EDT by Michael Schneider CLA
Modified: 2006-04-25 18:05 EDT (History)
0 users

See Also:


Attachments
Patch for scheduling rules (3.90 KB, patch)
2006-04-24 11:05 EDT, Bogdan Gheorghe CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!