Bug 17548 - TM: Lose target'ness if project renamed
Summary: TM: Lose target'ness if project renamed
Status: RESOLVED DUPLICATE of bug 17944
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 17944
Blocks:
  Show dependency tree
 
Reported: 2002-05-23 20:32 EDT by Kevin McGuire CLA
Modified: 2002-05-27 14:48 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***