It's all about the answers!

Ask a question

Retrieve source code related to change sets


Shirin Akbari (111) | asked Jul 15 '16, 4:01 p.m.
edited Jul 16 '16, 10:43 a.m. by David Lafreniere (4.8k7)
 Hi,
I am looking for an API which would help me to list all the source the code related to change sets.

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered Jul 16 '16, 10:55 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

Your answer


Register or 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.