Community
Participate
Working Groups
If I copy a project the repository provider is not consulted, and the new copy of the project is also associated with the same provider as the source. However the repository provider does not know anything about this new project.
This capability would need to be provided by the resources plug-in. One possibility would be to extend the move/delete hook. However, another possibility is for the repository provider to use an EFS that wraps the local file system. This way, they would be able to intercept any file system operations. However, I suspect that in this later approach, detecting a project copy may be difficult.
Related to bug 37722 and bug 27879
When a shared project is copied, the new copy of the project will use the same cvs module as the original one. This looks good to me. Hovewer .project of the copy is modified, so when we want to sync the copy we will see .project in the sync view. I've been pondering over such a solution. When a project is copied, .project file in the copy could be the same as in the original. This would be a similar behavior to "Check out as..." action, when we don't use the default name.
That is only true if your repository provider supports having multiple copies of the same tree in your local copy area (or sandbox). Some providers require that the local name of the project match the remote name. I believe that the solutuion we are promoting for this is for the repository provider to plug-in at the EFS level to intercept the copy (I've copied John to confirm or refute this).
It is awkward to handle this at the EFS layer. You get passed in another IFileStore and told to copy there. But at that layer you have no control over the attributes in the resulting resource, which is what associates the project to the provider.
Maybe we should consider copying projects without TEAM_PRIVATE resources?
Not that I am against it, but I don't understand how not copying TEAM_PRIVATE resources solves the reported problem.
The new copy of the project wouldn't be shared, so it wouldn't be "associated with the same provider as the source". User would have to share the project manually after copying it, or leave it not shared.
The mapping happens because of a property set on the project resource itself. Not copying the TEAM_PRIVATE members will not have an effect on this because the property will still be copied and the project will be considered associated with the provider.
*** This bug has been marked as a duplicate of bug 109166 ***