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

How to revert a changeset using RTC API

Hi Guys

Can you please advise how do we revert any changeset using RTC API?

We are basically trying to programmatically reverse some changesets that have already been delivered to stream

Regards

Girish

0 votes

Comments

Hi,


I now it has been quite a while since you asked this question, but did you find a way to do it ?  

I'am also interested in doing the exact same thing :-) 



One answer

Permanent link
Take a look at IWorkspaceConnection.IConfigurationOpFactory to get a revert op. You have to give it the IVersionableHandle that has the state ID you want to revert to. You can get the state that you want from a change set that has the content that you want to revert to. When you run commit on the op, it will take the given change set and check-in the changes to perform the revert. Then you can deliver the change set.

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,938
× 1,202

Question asked: Dec 05 '11, 6:06 p.m.

Question was seen: 8,080 times

Last updated: Jul 17 '13, 10:31 a.m.

Confirmation Cancel Confirm