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

How to get the changes in a delivery participant (follow-up)

Forum,

I am creating a participant to modify Files that have been deliverd in to the stream.
The participant is running after a delivery into the stream.

How can i get the changed files in this participant?
I have obtained the workspace already, but am not sure if i can get the changes from there.

0 votes



One answer

Permanent link
You can call AdvisableOperation#getOperationData() to get an explanation of what the operation is doing. Delivery operations will return an IScmDeltaSource that describes the changes.

For delivery you'll get IChangeHistoryAddOperandDelta which lists the new change sets, while phase 2 delivery will give you a IChangeHistoryModificationDelta which provides access to the changes on the files.

If you're validating change sets (ie, ensuring they have appropriate links/comments), you should use a deliver phase 1 advisor (which runs against operation com.ibm.team.scm.server.deliver). If you're validating changes to files/folders you should run against deliver phase 2 (operation com.ibm.team.scm.service.changehistory.modification). The two operations are split up for performance reasons.

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

Question asked: Feb 06 '15, 7:17 a.m.

Question was seen: 2,911 times

Last updated: Feb 09 '15, 11:03 a.m.

Confirmation Cancel Confirm