| Summary: | [Patch] Apply Patch error handling for invalid formats | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Navid Mehregani <nmehrega> | ||||
| Component: | Compare | Assignee: | Dani Megert <daniel_megert> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, gheorghe | ||||
| Version: | 3.2 | ||||||
| Target Milestone: | 4.3 M1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 386909 | ||||||
| Attachments: |
|
||||||
|
Description
Navid Mehregani
Created attachment 32993 [details]
The patch that's used
Move to Platform/Team You're correct in that the patch is not in a valid format for the Eclipse Apply Patch Wizard. Note that a patch must be created using the Unified format if it is to be applied by the Patch Wizard. You're also right in that we should be notifying users of incorrect patch formats. Upon further investigation, it would appear that the patch parser doesn't properly detect non-unified format patches. To properly fix this would involve a significant refactoring of the parser, which I don't want to attempt at this point in the release cycle. As such, I'm moving this off to the future. Out of curiousity, Navid, how did you generate your patch? Did you use an external tool? Actually I didn't generate the patch. It was provided to me. Yes, they used an external tool to generate it. I believe they used a patch utility in unix. *** Bug 382619 has been marked as a duplicate of this bug. *** *** Bug 373975 has been marked as a duplicate of this bug. *** Fixed in master: http://git.eclipse.org/c/platform/eclipse.platform.team.git/commit/?id=2632475c64c20d5354ade3e3772023573dc7a500 (In reply to comment #8) > Fixed in master: > http://git.eclipse.org/c/platform/eclipse.platform.team.git/commit/?id=2632475c64c20d5354ade3e3772023573dc7a500 This commit seems to be making tests fail, see Bug 386809. . The fix did not handle the case of multiple projects / files. Fixed with http://git.eclipse.org/c/platform/eclipse.platform.team.git/commit/?id=45591a0a8b4ec9665de02bc912049cfc8f04bf89 Also updated 'integration'. Verified in I20120808-2000. |