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);
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:
SCMPlatform.getWorkspaceManager(repo).setComment(...
Michael
mcraek wrote:
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);