It's all about the answers!

Ask a question

How to deliver the Set of changesets using plain client library ?

vinitha dsouza (14718111) | asked Aug 04 '17, 4:21 a.m.
edited Aug 04 '17, 4:24 a.m.

Hello team

I am currently checking in my change set using below code :

 fRepoWsConn.commit(fChangeSet, Collections
                                 .save(fileWorkingCopy)), fMonitor);
But when i try to deliver the a list of change sets using below code i get the following error:
Exception in deliverChangesets()...details 'Deliver' failed. Preconditions have not been met: A work item or change request must be associated with the change set and a comment must be set.

 for(IChangeSetHandle fChangeSet:changesetList){
              List<ILink> links = fileSystemWorkItemManager.createLink(
 streamHandle, changeSet,
     new IWorkItemHandle[] { (IWorkItemHandle) workitem
             .getItemHandle() }, null);

IChangeHistorySyncReport sync = fWorkspace.compareTo(streamWsConn,
     Collections.EMPTY_LIST, fMonitor);

fWorkspace.deliver(streamWsConn, sync, Collections.EMPTY_LIST,
     sync.outgoingChangeSets(compHandle), fMonitor);

I am able to deliver one change set and deliver the same in one shot ,But unable to deliver the set of Chnagesets?

Any idea on this ??

One answer

permanent link
Ralph Schoon (63.0k33645) | answered Aug 04 '17, 6:54 a.m.

See the answer at the duplicate question:

Note, if you work on stuff with several people, coordinate who asks a question.

Your answer

Register or to post your answer.