How to create a new Stream using snapshot programatically
I am trying to create a new Stream using snapshot. The following code executes without any error. It created the stream but there is no component or snapshot associated with the stream.
part of the code snippet:
stream = manager.createStream(project, streamName, description, monitor);
stream.addBaselineSet(ibaselineset, monitor);
We are trying to automate the source migration from different SCM into RTC. Any help is appreciated.
Laxman
part of the code snippet:
stream = manager.createStream(project, streamName, description, monitor);
stream.addBaselineSet(ibaselineset, monitor);
We are trying to automate the source migration from different SCM into RTC. Any help is appreciated.
Laxman
2 answers
IFlowNodeConnection.addBaselineSet() promotes a snapshot. It doesn't modify the workspace's configuration.
If you want to replace the current configuration of a component with the configuration contained in a baseline or snapshot, you should look into the IWorkspaceUpdateOperation.replace() family of methods.
e
If you want to replace the current configuration of a component with the configuration contained in a baseline or snapshot, you should look into the IWorkspaceUpdateOperation.replace() family of methods.
e