Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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? 

0 votes


Accepted answer

Permanent link
Take a look at:
-IWorkspaceManager.getBaselineConnection(IBaselineHandle baselineHandle,IProgressMonitor monitor)
and BaselineConnection.changeHistory()
Andrew Ciaz selected this answer as the correct answer

0 votes

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

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,954
× 1,701

Question asked: Jun 11 '19, 4:27 a.m.

Question was seen: 2,028 times

Last updated: Jun 13 '19, 4:23 a.m.

Confirmation Cancel Confirm