Replace component using client Operations
![]()
Hi,
I'm looking for how to replace a component (in order to re-align it with a baseline) through plain api (RTC 3.0.1). I've tryed different replace methods of IWorkspaceUpdateOperation: IWorkspaceUpdateOperation wsUpdateOp = IOperationFactory.instance.getWorkspaceUpdateOperation(WorkspaceUpdateDilemmaHandler.getDefault()); For this first method (which has a wrong javadoc, as it says there is a third parameter: component) I use this scenario: one repository workspace with one component flowing with a stream with the same component. At start time the repository workspace and stream are equals (based on the same baseline). I get an old baseline through BaselineSearchCriteria (setting name and component) and then I run the replace. Second scenario: two repository workspace, one based on a baseline and the other based on a previous one. IWorkspaceUpdateOperation wsUpdateOp = IOperationFactory.instance.getWorkspaceUpdateOperation(WorkspaceUpdateDilemmaHandler.getDefault()); In both scenario I get this exception: com.ibm.team.filesystem.client.FileSystemException: Failed to accept, there are component(s) affected that are disconnected I have other components on my Project Area but are not connected to the stream or repository workspaces I'm using. Any idea on how to use this method? Thanks, Michele. |
One answer
![]()
Hi,
did you find an answer for this question?? |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.