How to find out programatically which files are changed?
![]()
How to find out programatically which files have been changed in a change set?
|
3 answers
![]() How to find out programatically which files have been changed in a If you have the IChangeSet you can do: List<IChange> changes = changeset.changes(); for (IChange change : changes) { change.item() //this is the changed file/folder } - Dmitry |
![]()
ChangeSetDTO.getChanges() is supposed to work in a similar fashion and return List<ChangeDTO>, but it always returns null. On the other hand IChangeset.changes() works beautifully. Is this a know issue or could I be making a mistake?
|
![]()
I got it working. Earlier I was using IScmRestService.getChangeSet(), this does not work and is a known issue ( Refer workitem 40937). After using IFilesystemRestService.getChangeSet() I am able to get the changes from ChangeDTO object.
|