how to get the files from merge changesets using client libraries ?
Hello
Change changedFile = (Change)changedFileObj; versionableHandle = changedFile.afterState(); if(null != versionableHandle){ Object file = SCMPlatform.getWorkspaceManager(currentWIRepo).versionableManager().fetchCompleteState(versionableHandle, monitor);
currentWIRepo.itemManager().fetchCompleteItem(changeSet.getComponent(), IItemManager.DEFAULT, null)).getName()); if(file instanceof IFileItem){ filesList = filesList+((IFileItem) file).getName()+","; } } else{ versionableHandle = changedFile.beforeState(); Object file = SCMPlatform.getWorkspaceManager(currentWIRepo).versionableManager().fetchCompleteState(versionableHandle, monitor); if(file instanceof IFileItem){ filesList = filesList+((IFileItem) file).getName()+"(-),";
} } Please tell if any hint ? |
Be the first one to answer this question!
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.
Comments
Which line (or API call) was giving the IllegalArgumentException?