Community
Participate
Working Groups
When checking a patch for bug 214105 I came across an issue. The steps are as follows: 1. Modify a shared project 2. Create a patch 3. Select "Workspace" as the location of the patch 4. Click "Browse..." 5. The "Save Patch" dialog shows up 6. Select a project with a folder 7. Enter the same name for the file as the folder. OK button is enabled which is fine as you should be able to create such a file. 8. Click OK, and then Finish on the wizard => first you'll get a message saying "A file with that name already exist", which is misleading (unless we treat all folder as files) => when accepted, you'll get an error message "Problem Occurred: Resource exists". I know, you've just told me that :) => creating the patch fails
Created attachment 107729 [details] Patch Tomasz, I fix the problem. Please have a look at the patch.
One more comment. I fixed the problem by disabling the OK button when the user specified a path that points to a folder. I also added the same behavior to the parent control where you can type the whole path.
The patch seems to be incomplete. It's missing CVSUIMessages.GenerateDiffFileWizard_FolderExists message, which leads to compilation errors.
Created attachment 108077 [details] Patch This one should be fine.
Created attachment 108185 [details] Fix v03 The latest patch works fine, but I made some cosmetic changes in it. How does it look now, Pawel?
Created attachment 108186 [details] mylyn/context/zip
Looks nice. Thanks.
The latest version of Pawel's patch (v03) released to HEAD.