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

How to find out programatically which files are changed?

How to find out programatically which files have been changed in a change set?

0 votes



3 answers

Permanent link
How to find out programatically which files have been changed in a
change set?

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

0 votes


Permanent link
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?

0 votes


Permanent link
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.

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,938

Question asked: Nov 07 '08, 4:41 a.m.

Question was seen: 7,012 times

Last updated: Nov 07 '08, 4:41 a.m.

Confirmation Cancel Confirm