How to revert a changeset using RTC API
G Mohite (6●2●1)
| asked Dec 05 '11, 6:06 p.m.
edited May 20 '13, 6:56 p.m. by Millard Ellingsworth (2.5k●1●24●31)
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 |
One answer
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
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.
Comments
Hi,