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
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
One answer
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.
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
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.