How to get before and after state from a IChange?
![]()
I have a IChange respectively a IChangeSetHandle object. Now I would like to see the file that is represented by this state, as well as the difference between the before and the after state.
But I don't know how to really get the file from a IChange object. Any hints? |
3 answers
![]()
Hi, Tim
You are right if I use data.getSourceWorkspace, the file name is the old file name. Thanks!
ServiceConfigurationProvider configProvider = ServiceConfigurationProvider.FACTORY.create(
data.getSourceWorkspace(), changeSet.getComponent());
|
![]()
Fetch using IVersionableManager or IScmItemService.
|
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.
Comments
Any progress for this question? S M, could you attach your solution?
Have you tried John's suggestion below? The IChange provides the before and after states that can be fetched with IVersionableManager or IScmItemService.