It's all about the answers!

Ask a question

how to get component from changeset ?

praveen patidar (8613144) | asked Dec 13 '12, 1:12 a.m.
Our usecase is to determine all the dependent changeset for a given changeset and list down all the files with full path started from the component using API.

How to list down all the dependent changeset for a given changeset ?

If we get the dependent changeset , we are able to get the files associated with it, so how to get full path for the file? as the method to get full path requires component name as well , so how to get component name from a given changeset.?

Praveen Patidar

One answer

permanent link
Andrew Hoo (1.0k1) | answered Dec 13 '12, 1:14 p.m.
Using the api, IChangeSet.getComponent() returns a component handle - however, without digging too much into your usecase, you might want to explore how you are supposedly getting this initial change set first. I mention this because when trying to explore remote-paths of files, it is dependent on a the RepositoryWorkspace/Stream's "configuration(IComponentHandle)". This would lead me to believe you need to pick the stream and component first even before dealing with change sets and files.

Your answer

Register or to post your answer.