| Summary: | [Patch] SVN patches have problem when applying on a single file | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | si <sshnug.si> | ||||||||
| Component: | Compare | Assignee: | Platform-Compare-Inbox <platform-compare-inbox> | ||||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||||
| Severity: | minor | ||||||||||
| Priority: | P3 | CC: | markphip, mober.at+eclipse, tomasz.zarna | ||||||||
| Version: | 3.1 | Keywords: | helpwanted | ||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | stalebug | ||||||||||
| Attachments: |
|
||||||||||
|
Description
si
Apply Patch is provided by the Compare component. Could you please attach an example SVN patch file and an original file (to apply the patch against). Thanks. Created attachment 19104 [details]
Original file (before amending)
Clean copy of file before patch is applied
Created attachment 19105 [details]
Patch to apply on about.html
"Apply Patch" fails when selecting the individual file from Navigator or apply
patch dialog, but works when selecting the directory containing the file.
Note the absolute path used by Subclipse (svn diff outside of working copy).
Relative paths (eg. CVS diff or svn dff inside working copy) work as expected.
Created attachment 42318 [details]
Sample SVN Patch
This problem appears to have gotten worse in recent 3.2 builds. When SVN patches contain new files, the Apply Patch is not letting you apply them. I assume this has something to do with the SVN Unified Diff format. Subclipse patches always have absolute path names because when we run the svn diff library code, the current working directory is not set to your project folder as it typically would be when you run the svn command line.
This could be a very significant problem for SVN and Eclipse 3.2.
I am using RC5 downloaded today. I am attaching the patch I am trying to apply so you can see the format. It is similar to Andre's.
I support Mark on this. I've been hitting into this issue from time to time and now it somethow got worse. Entered a new issue as it is really not the same as this one: https://bugs.eclipse.org/bugs/show_bug.cgi?id=143354 We do not have the manpower to address this issue in 3.3. Now that we have Subversive as a project, should that be moved to Technology / Subversive? With latest version of Subclipse (1.4.x) we are now able to create patches using relative paths (also workspace-relative for multiple project patches). This issue can probably be closed. 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. 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. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. 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. -- The automated Eclipse Genie. |