How to retrieve change sets from baseline using plain java api?
Accepted answer
Take a look at:
-IWorkspaceManager.getBaselineConnection(IBaselineHandle baselineHandle,IProgressMonitor monitor)
and BaselineConnection.changeHistory()
Comments
Thanks @David Lafereniere for your quick reply
@David Lafreniere BaselineConnection.changeHistory() returns IChangeHistory object but there is no api to retrive IChangeSet object from it, do you have any idea how to get changeset object from IChangeHistory
Also, are you looking for client-side API, or server-side API?
IBaselineConnection.changeHistory() -->
IChangeHistory.getHistoryDescriptor() -->
IChangeHistoryDescriptor.recent() which returns IChangeHistoryEntryChange -->
IChangeHistoryEntryChange.changeSet() to get the change set handle
This would get you the most recent batch of change sets, then you would need to call IChangeHistory.previousHistory() and repeat untll IChangeHistory.previousHistory() is null
Thanks @David Lafreniere