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

Retrieve source code related to change sets

 Hi,
I am looking for an API which would help me to list all the source the code related to change sets.

0 votes


Accepted answer

Permanent link
Given a collection of change set handles, you would have to fetch the full IChangeSet items (I'll assume you know how to fetch full items for now, but let me know if you do not). A change set has an IChangeSet.changes() method which returns a collection of IChange. An IChange represents a change (add, delete, modify - see IChange.kind()) to a single versionable item (i.e file or folder). IChange.item() returns the IVersionableHandle (file/folder). You can fetch versionables using:
SCMPlatform.getWorkspaceManager(repo).versionableManager().fetchCompleteStates()
Michael Valenta selected this answer as the correct answer

0 votes

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,937
× 149

Question asked: Jul 15 '16, 4:01 p.m.

Question was seen: 2,286 times

Last updated: Jul 16 '16, 10:55 a.m.

Confirmation Cancel Confirm