Using a component that has been deleted
2 answers
If none of the baselines describe the configuration that you want then that's OK. It's likely nobody thought to baseline that configuration. In that case, add a component baseline that is closest to what you want and discard/accept change sets to get the component to the configuration you desire.
Comments
Thanks Tim
The component is not deleted because you can't delete a component. It's the component's configuration from when you removed it from a workspace. When you removed it from the workspace, the configuration was automatically baselined. When you add a component to a workspace, select that you want to add a component baseline and find that baseline in the list.
I was referring to the need for an enhancement to allow the addition of all the deleted component's baseline's to a workspace.
I recall there being a work item requesting a way to make it easier to undo a component deletion but I can't find it. Or maybe I'm mistaken and you could request it.
I'm not sure what you mean by adding all the component's baselines to a workspace. That could potentially be a lot of baselines and what I think really matters is you end up with all the change sets that you need. If a baseline describes that, you don't need the other baselines. The baselines exist in the repository and if you need to switch to it then do so. I don't really see a need to have a baseline in your workspace if it's not your latest one.
The first choice lets you pick any component in the repository (including ones that are not in any stream or workspace).
But note that you cannot select a component for which you do not have read-access (if you don't have read access, you do not see it at all).