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
If you have IChangeSetHandles then you can fetch the IChangeSets from them. The IChangeSet will have a getComponent(), which returns an IComponentHandle. Similarly, if you fetch the IComponent from the handle you can get the component's current name.
I hope that this helps, Chris |
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. |
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.