It's all about the answers!

Ask a question

How to retrieve change sets from baseline using plain java api?


Andrew Ciaz (273) | asked Jun 11, 4:27 a.m.

Hi all,


I need to fetch all the changesets from baseline. I successfully fetched baseline handle. After that I stuck because there is no api provided to fetch changesets from baseline, is anyone has idea? 

Accepted answer


permanent link
David Lafreniere (4.1k7) | answered Jun 11, 9:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
edited Jun 11, 9:24 a.m.
Take a look at:
-IWorkspaceManager.getBaselineConnection(IBaselineHandle baselineHandle,IProgressMonitor monitor)
and BaselineConnection.changeHistory()
Andrew Ciaz selected this answer as the correct answer

Comments
Andrew Ciaz commented Jun 12, 2:50 a.m.

Thanks @David Lafereniere for your quick reply  


Andrew Ciaz commented Jun 12, 4:55 a.m.

 @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


David Lafreniere commented Jun 12, 1:03 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Also, are you looking for client-side API, or server-side API?


David Lafreniere commented Jun 12, 2:39 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

Andrew Ciaz commented Jun 13, 4:23 a.m.

Your answer


Register or to post your answer.