add a comment to to a new changeset using Java API
Created a new change set, how do I add a comment to it
so it shows up in file(s) history?? IChangeSetHandle cs1 = workspace.createChangeSet(component, MONITOR); IChangeSet cs1_item = (IChangeSet) repo.itemManager().fetchCompleteItem(cs1, IItemManager.REFRESH, MONITOR); IChangeHistorySyncReport sync = workspace.compareTo(stream, WorkspaceComparisonFlags.CHANGE_SET_COMPARISON_ONLY, Collections.EMPTY_LIST, MONITOR); workspace.deliver(stream, sync, Collections.EMPTY_LIST,sync.outgoingChangeSets(component), MONITOR); |
One answer
This is done using the workspace manager. here's the call:
SCMPlatform.getWorkspaceManager(repo).setComment(... Michael mcraek wrote: Created a new change set, how do I add a comment to it |
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.