How to get change sets being delivered with baseline using server API
There are change sets in the repository workplace, upon creation of snapshot a baseline is created inside every component of work space and is visible as outgoing change in the pending changes view. Before creation of baseline change sets were visible in pending changes view, if deliver operation is performed, these change sets can be fetched using below server API
After creation of snapshot, baseline is visible in the pending changes view as outgoing, if this baseline is expanded we can see change sets being delivered inside that baseline. I have been trying to get baseline being delivered in deliver operation and change sets inside the baseline, with the help of below code I am able to get baselines being delivered as part of deliver operation but I am unable to get change sets being delivered inside the baseline.DeliverOperationData data = (DeliverOperationData) operationData;List<IChangeSetHandle> changeSetHandles = data.getChangeSetHandles();
Later I converted baseline handles into baselines but I am unable to get change sets being delivered inside these baselines, any pointers or guidance would be of great help.List<IBaselineHandle> baselines = data.getBaselines();
Thank You
2 answers
I have this example for creating and delivering baselines:
Not sure that is what you are looking for.
Comments
Image 1 : Delivery of change sets
As shown in above screenshot I can get these change sets using below API as part of follow up action on delivery operation
DeliverOperationData data = (DeliverOperationData) operationData;List<IChangeSetHandle> changeSetHandles = data.getChangeSetHandles();
Image 2 : Delivery of baselines
As shown in above screenshot if baselines are delivered I am able to get baselines being delivered as part of follow up action on deliver operation but I am not able to get change sets inside these baselines.
List<IBaselineHandle> baselines = data.getBaselines();