It's all about the answers!

Ask a question

How to revert a changeset using RTC API


G Mohite (621) | asked Dec 05 '11, 6:06 p.m.
edited May 20 '13, 6:56 p.m. by Millard Ellingsworth (2.5k12431)
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

Comments
Martin Dam Pedersen commented Apr 03 '13, 2:17 a.m.

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
Tim Mok (6.6k38) | answered Jul 17 '13, 10:31 a.m.
JAZZ DEVELOPER
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.

Your answer


Register or to post your answer.