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

IFileItem and its parents

Hello,

I have a deliver follow-up action on the server. From the changeset, I
obtain a change, then afileItem. Now I'd like to obtain the project. I
noticed that there's a getParent () method but the handle it returns cannot
be used to obtain content ot navigate again, because its stateID is not set.

I recently found configurationDetermineAncestorsInHistory in SCMService that
does what I'm looking for. but I see there's an operation running and I'm
wondering if configurationDetermineAncestorsInHistory is expensive and if
there would be a more simple way to obtain the information.

Thanks,

Nicolas

0 votes



One answer

Permanent link
You could use IScmService.configurationLocateAncestors instead. It is not quite as expensive. The difference is though that you may receive null back. That would be the case where something was modified within the changeset being examined and deleted in another subsequent changeset also being delivered.

You also indicate you are looking for the project. Note that with the flexibility provided for sharing/loading content the top level folder is not necessarily the project folder.


Hello,

I have a deliver follow-up action on the server. From the changeset, I
obtain a change, then afileItem. Now I'd like to obtain the project. I
noticed that there's a getParent () method but the handle it returns cannot
be used to obtain content ot navigate again, because its stateID is not set.

I recently found configurationDetermineAncestorsInHistory in SCMService that
does what I'm looking for. but I see there's an operation running and I'm
wondering if configurationDetermineAncestorsInHistory is expensive and if
there would be a more simple way to obtain the information.

Thanks,

Nicolas

1 vote

Comments
You could use IScmService.configurationLocateAncestors instead. It is not quite as expensive. The difference is though that you may receive null back. That would be the case where something was modified within the changeset being examined and deleted in another subsequent changeset also being delivered

Thank you heatherf for pointing that out: it helps us on a resolving path error.

Cheers.

Funny thing: found there was a PMR for a very similar resolving path error we'd got.

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

Question asked: Jun 15 '09, 4:09 p.m.

Question was seen: 6,834 times

Last updated: Jan 26 '18, 11:39 a.m.

Confirmation Cancel Confirm