[closed] Finding Changesets by Itemid or comment
Hi All,
I have to identify if a changeset exists in any stream,prior to creating a new one - so, i am retrieving the uuid during the creation and using it further. I tried using "haschangesets" method to find if a workspace or stream contains a changeset with a particular uuid. code snippet as below: UUID uuid1 = UUID.valueOf(fChangeSet.getItemId().getUuidValue()); IChangeSetHandle csHandle = (IChangeSetHandle) IChangeSet.ITEM_TYPE.createItemHandle(uuid1, null); IChangeSet csNEW = (IChangeSet) teamRepository.itemManager().fetchCompleteItem(csHandle, IItemManager.REFRESH, monitor); cs.add(csHandle); if(fWorkspace.hasChangeSets(cs, monitor)) It doesnt locate an existing changeset -> I tried with both Changeset and the handle as well. 2. I also tried using changeset-searchcriteria , but couldn't find an option to search by UUID, ItemID or comment. Please advise. Thanks |
The question has been closed for the following reason: "Other" by valli Jun 09 '15, 3:38 a.m.
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Jun 09 '15, 3:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I am not sure that the IItemManager is the correct API. I would suggest to search in the API packages com.ibm.team.filesystem.* and com.ibm.team.scm.*
|