Bug 259074

Summary: "Apply Patch" ignore patch segments does not work correctly for new files
Product: [Eclipse Project] Platform Reporter: Christoph Hohmann <christoph.hohmann>
Component: TeamAssignee: Platform Team Inbox <platform-team-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: Mike_Wilson
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch file with leading path name segments
none
Patch file without leading path name segments none

Description Christoph Hohmann CLA 2008-12-17 04:24:31 EST
Created attachment 120672 [details]
Patch file with leading path name segments

Build ID: M20080911-1700

Steps To Reproduce:
A patch that is created using an external tool that does contain leading path name segments and new files can not be applied using the Apply Patch wizard.

1. Create an empty Project named "Project"
2. Open the Apply Patch wizard
3. Select the prefix.patch file
4. Select "apply the patch to the workspace root"
5. Set "Ignore leading path name segments" to 1

The wizard shows Project/new_file.txt with one failed hunk.

If you do the same with the noprefix.patch and "Ignore leading path name segments" set to 0 it also shows Project/new_file.txt but the hulk does not show as failed.


More information:
Comment 1 Christoph Hohmann CLA 2008-12-17 04:25:12 EST
Created attachment 120673 [details]
Patch file without leading path name segments
Comment 2 Mike Wilson CLA 2009-05-05 12:34:36 EDT
Changing Version tag to something more believable.
Comment 3 Eclipse Webmaster CLA 2019-09-06 15:35:10 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.