Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

How to do Rollback in RTC SCM

Hi Team,


Here is the scenario, We have two stream in the name of Dev and Prod. From the Dev stream we have delivered and merged 3 changesets (A, B, C) to the Prod stream which is having same file but different lines of modification. But for the release we have to take only B and C changesets and for the A changeset have to Rollback from Prod stream.

Is there a way to do Rollback for the Particular changeset? Kindly assist us to achieve the rollback process.

Regards,
Kiran

0 votes



One answer

Permanent link
To revert a change from a change set in a stream, you can create a patch that reverts the change. Apply that patch and deliver the reverting change. You could revert the change set A and only deliver the change to the prod stream

If you have changes to the same files in two change sets, they have an order dependency and that, in my opinion, limits what you can do in this scenario if they are already delivered. You could get rid of the change set A only if it was the last of the three change sets A,B,C delivered as explained below.

To get rid of the last (or any change set not being required by another change set) I think you can do the following. Assuming you have a repository workspace with the state state of the stream containing the change sets. Rebase the affected component in the stream to a state before the change sets (e.g. A,B,C) have been delivered. Deliver the now outgoing changes, except A,B,C to the stream. Now you can deliver only the changes you want to be delivered. If there is a dependency, the SCM system will tell you and I think you need to use the patch.

https://jazz.net/library/article/126 is important, but does not cover this case, I think.

0 votes

Comments

Thank you for the reply Ralph.


How about Rollback option in Operation History? Will that option will give hand for doing particular changeset rollback?

I have not used that yet and I can not see individual change sets.

For all I can see that seems to do what I explained by replacing the component with an older state, as I describe above. You would still have to redeliver your other changes to the component.

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
× 7,536
× 1,366
× 1,204

Question asked: Jun 09 '20, 5:02 a.m.

Question was seen: 1,841 times

Last updated: Jun 09 '20, 8:43 a.m.

Confirmation Cancel Confirm