Getting ChangeSet changes? - is it possible
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
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, |
Hi Michael,
Thanks alot for your post and your help, I did find that out after posting this :) Thanks Jafar Jafar, Hi, |
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.