How to get ChangeSetHandles after phase 2 delivery, using java server side API?
I'm trying to get the ComponentHandle after a phase 2 delivery from the IScmDeltaSource. I noticed the operation date for a phase 1 delivery gives the DeliverOperationData and you can the ChangeSetHandles from it.
DeliverOperationData deliverOpData = (DeliverOperationData) data;
changeSetHandles = deliverOpData.getChangeSetHandles();
How can I achieve this for phase 2? Ultimately, I would like to get the component/component name from the change.
2 answers
Unfortunately is not so easy and linear as the phase 1 extension:
the operation.getOperationData() method returns an IScmDeltaSource instance. From this one you can use the method getDeltas() to obtain two object in an iterable: you have to catch the IChangeHistoryAddOperandDelta object that have a getAdditionalChangeSets method you can use to retrieves the change-set delivered.
the operation.getOperationData() method returns an IScmDeltaSource instance. From this one you can use the method getDeltas() to obtain two object in an iterable: you have to catch the IChangeHistoryAddOperandDelta object that have a getAdditionalChangeSets method you can use to retrieves the change-set delivered.