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

Undo changes of a change set without touching the sandbox

Hi!

I'm looking for a way to remove some change that accidentally landed in a changeset. I do want to keep the modified file though, so I don't want to undo the change in the sandbox, but I want to remove it from the changeset only.

Apart from loading the file, undoing in changeset and sandbox and then overwriting the changed file, does RTC offer any facility for that?

Thanks!

Uli

0 votes



2 answers

Permanent link
I haven't found a proper solution, but at least a workaround. If you open the file from the changeset in the diff viewer and keep the diff viewer open, you can then undo the change from the changeset and save the content of the diff viewer.

Two problems here:
1. The file will be saved, the timestamp bumped which means that e.g. "make" will consider the file changed and rebuild dependencies.
2. You must work around bug 186491, i.e. make a modification before saving, so that it considers the content of the diff viewer worth saving.

Uli

0 votes


Permanent link
Hi!

I'm looking for a way to remove some change that accidentally landed in a changeset. I do want to keep the modified file though, so I don't want to undo the change in the sandbox, but I want to remove it from the changeset only.

Apart from loading the file, undoing in changeset and sandbox and then overwriting the changed file, does RTC offer any facility for that?

Thanks!

Uli
Is this a file you want to put into source control eventually? Because you can move the change to a new change set.

If you didn't want to check it in at all, I would recommend creating a patch for those changes instead of some trick with the compare editor. You would apply the patch after undoing the change to get it back as an unresolved change.

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

Question asked: Nov 18 '11, 6:53 a.m.

Question was seen: 5,563 times

Last updated: Nov 18 '11, 6:53 a.m.

Confirmation Cancel Confirm