It's all about the answers!

Ask a question

Multiple operation on a file in a changeset

Vinod Kumar (9622010) | asked Jun 08 '10, 9:25 a.m.
I'm trying to rename and modify a file in RTC in a single change set using API.
I'm using the code like this.



List<IConfigurationOp> itemsToCommit = new ArrayList<IConfigurationOp>();


IWorkspaceConnection.commit(changeSet, itemsToCommit, monitor);

But then I realize that if there are more than one operations involved as in case of fileItem (setName and setContent) then latest operation is committed. In this case file 'fileItem' is modified but it is not renamed to the new name. If I try to add it to itemsToCommit twice (i.e after each operation) then I get an exception. How can I handle this?

Be the first one to answer this question!

Register or 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.