DSCM How to identify if a Changeset is a replica?
Hi Everyone,
Is there any way to differentiate between an "original changeset" and a "replicated changeset"?
I´m interested in the answer both for GUI and API.
I know already that when one does distributed delivery to another repository, both changesets uuids keeps the original value.
For my use cases it´s really important to know if a component (baslienes and changesets) comes from another repository....
Thank you.
Accepted answer
Diogo,
The only way I can think of to do this would be to look at the version identifiers for the file states in the change sets. File states have a short identifier, which is just an integer, and a long identifier, that is of the form shortId@repoUUID. You can get the version identifiers for file states using the API IWorkspaceManager#getVersionableIdentifiers. The article https://jazz.net/library/article/1418 talks about using version identifiers in a distributed environment.
One final note. It is possible that the end state in the change set came from another repo (e.g. if a resolve with proposed was performed) so you may need to check multiple states in the change set.
Hope this helps,
Michael
The only way I can think of to do this would be to look at the version identifiers for the file states in the change sets. File states have a short identifier, which is just an integer, and a long identifier, that is of the form shortId@repoUUID. You can get the version identifiers for file states using the API IWorkspaceManager#getVersionableIdentifiers. The article https://jazz.net/library/article/1418 talks about using version identifiers in a distributed environment.
One final note. It is possible that the end state in the change set came from another repo (e.g. if a resolve with proposed was performed) so you may need to check multiple states in the change set.
Hope this helps,
Michael