It's all about the answers!

Ask a question

Getting ChangeSet changes? - is it possible


Jafar Al-Kofahi (4152) | asked Jun 23 '10, 1:28 p.m.
Hi,

I have been searching the forums and the documentation about a way to get the changes to each file in a changeset. My conclusion was: I CANNOT DO THAT because ChangeSets contains a BeforeState and an AfterState but I cannot see the changes unless I compare both states using a tool or something similar.

Could anyone confirm my conclusion? If its not true could you please give me a lead on how to get those changes.

Thanks in advance
Jafar

2 answers



permanent link
Michael Valenta (3.7k3) | answered Jun 28 '10, 8:51 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Jafar,

The IChanegSet#changes method returns a list of IChange objects that
describe each change associated with a change set (e.g. a change could
be a file modification or a folder/file addition or move, etc.). From
the change object , you can determine what type of change occurred using
the kind() method and you can fetch the before and after states of the
item if more in-depth information (e.g. a file diff) is required.

Hope this helps,
Michael

jafarkofahi wrote:
Hi,

I have been searching the forums and the documentation about a way to
get the changes to each file in a changeset. My conclusion was: I
CANNOT DO THAT because ChangeSets contains a BeforeState and an
AfterState but I cannot see the changes unless I compare both states
using a tool or something similar.

Could anyone confirm my conclusion? If its not true could you please
give me a lead on how to get those changes.

Thanks in advance
Jafar

permanent link
Jafar Al-Kofahi (4152) | answered Jul 14 '10, 10:30 p.m.
Hi Michael,

Thanks alot for your post and your help, I did find that out after posting this :)

Thanks
Jafar
Jafar,

The IChanegSet#changes method returns a list of IChange objects that
describe each change associated with a change set (e.g. a change could
be a file modification or a folder/file addition or move, etc.). From
the change object , you can determine what type of change occurred using
the kind() method and you can fetch the before and after states of the
item if more in-depth information (e.g. a file diff) is required.

Hope this helps,
Michael

jafarkofahi wrote:
Hi,

I have been searching the forums and the documentation about a way to
get the changes to each file in a changeset. My conclusion was: I
CANNOT DO THAT because ChangeSets contains a BeforeState and an
AfterState but I cannot see the changes unless I compare both states
using a tool or something similar.

Could anyone confirm my conclusion? If its not true could you please
give me a lead on how to get those changes.

Thanks in advance
Jafar

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.