Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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);

1 vote



One answer

Permanent link
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
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);

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,947

Question asked: May 06 '10, 10:24 a.m.

Question was seen: 6,633 times

Last updated: May 06 '10, 10:24 a.m.

Confirmation Cancel Confirm