| Summary: | Files lost from CVS when replacing with nonexistent version | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> | ||||||
| Component: | CVS | Assignee: | Dani Megert <daniel_megert> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | daniel_megert, deepakazad, raksha.vasisht | ||||||
| Version: | 3.6 | ||||||||
| Target Milestone: | 3.7 M2 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Markus Keller
Created attachment 177433 [details]
Proposed Fix
This patch modifies the ReplaceOperation so that it doesn't delete files from projects that won't be replaced in the end because the tag doesn't exist.
Thanks for the patch Markus. It looks correct. Committed to HEAD. Available in builds >= N20100826-2000. Argh! That patch is no good: it breaks 'Override and Update'. Reverted the fix in HEAD. Since the ReplaceOperation is used in multiple paths it's probably best (and most performant) to fix it in ReplaceWithSelectableTagAction or its super class by excluding the resources which don't have the selected tag. > it's probably best (and most performant) to fix it in
> ReplaceWithSelectableTagAction or its super class by excluding the resources
> which don't have the selected tag.
This would also allow us to defer the warning that files will be overwritten to the point where we know which projects get replaced.
I'll try to take a look during 3.7 but not now.
>This would also allow us to defer the warning that files will be overwritten to
>the point where we know which projects get replaced.
I've not done that as this would mean bigger changes.
Created attachment 178017 [details]
Fix
Verified original scenario and comment 3 in I20100914-0100. Verified for 3.7M2 on Linux with I20100914-0100. |