Bug 25635 - Applying patch creates wrong folder structure
Summary: Applying patch creates wrong folder structure
Status: RESOLVED DUPLICATE of bug 28840
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Compare-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-01 11:53 EST by Nick Edgar CLA
Modified: 2003-02-10 09:36 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2002-11-01 11:53:50 EST
build I20021023

I was trying to apply the patch for bug 22621.
- in package explorer, selected JFace's Dialog.java
- compared with patch, etc.
- it compared OK, showing the difference properly
- hit Finish
- it created a new folder structure, replicating the path to the file under the 
dialogs folder:
org.eclipse.jface/src/org/eclipse/jface/dialogs/src/org/eclipse/jface/dialogs
- this contained Dialog.java and Dialog.java.rej
- the new Dialog.java had 0 bytes, Dialog.java.rej had essentially the same 
contents as the patch
- the original Dialog.java was unaffected

- went back and selected the project, org.eclipse.jface, instead of Dialog.java
- tried to apply the patch again
- this time it worked
Comment 1 Dani Megert CLA 2002-11-14 02:50:27 EST
There is some indication that there's a path (because the patch was actually
created for/on the project.

It would have patched Dialog.java correctly if the "Ignore leading path name
segments" was 5.
The UI should automatically set the at value since it matched Dialog.java from
the patch with the one in the workspace. Another alternative would be to show no
match until the user correctly sets the leading segments value.

Not critical enough for 2.1-M3
Comment 2 Andre Weinand CLA 2003-02-10 09:36:04 EST

*** This bug has been marked as a duplicate of 28840 ***