Bug 17548

Summary: TM: Lose target'ness if project renamed
Product: [Eclipse Project] Platform Reporter: Kevin McGuire <Kevin_McGuire>
Component: ResourcesAssignee: DJ Houghton <dj.houghton>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Michael.Valenta
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on: 17944    
Bug Blocks:    

Description Kevin McGuire CLA 2002-05-23 20:32:39 EDT
If you rename a project, you are no longer able to do TM stuff to it.  
Presumalby we need to rekey the sync info.
Comment 1 Michael Valenta CLA 2002-05-25 17:18:56 EDT
This is tricky. It looks like the sync info is not maintained after project 
deletion. Therefore, there is no window of opportunity to copy the sync info 
from the old project to the new one. In pre-delete, the new project does not 
exist, so we cannot copy the the sync info to it. In post delete, the sync info 
is no longer on the old project so it is lost. We could remember the target 
provider info for the brief time between these two but this is impractical for 
our synchronized providers as they have sync info on each resource. Possible 
solutions include:
1. Ask core to more sync info on project moves. This could gaurantee success.
2. Investigate the possibility of using the move/delete hook. I think we could 
only do this if there was no Repository Provider or the provider returned false 
(indicating default behavior). In these cases, we could possibly provide a 
custom project delete that supported the transfere of sync info.
Comment 2 Kevin McGuire CLA 2002-05-27 12:02:45 EDT
Re #2:  you only get move/delete if you are a repository provider, which we are 
not.

I guess this didn't work in 1.0 with cvs projects either?  Actually, I think 
there was a time where you couldn't rename projects anyway.
Comment 3 Kevin McGuire CLA 2002-05-27 14:26:16 EDT
Moving to Core to investigate moving of sync info on rename.
Comment 4 DJ Houghton CLA 2002-05-27 14:48:52 EDT

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