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

reverse operation

How revers operation works in RTC. if i have a changeset with 3 files
if i reverse a changeset it will bring all the 3 files in pending patches

will this files will always be compared with the latest version ?

Example if the changeset i reversed has file1 version 3 so will it compare file1 version 3 with version 6 ?



Thanks

0 votes



2 answers

Permanent link
There are two ways to remove changes from a stream. The first way is to simply remove the according changeset from the stream. You do that by first discarding it from your workspace (use e.g. the history to get at the changeset and discard it from there). This of course requires that you don't have any changesets that depend on this one (i.e. modify the same files) or that you discard those changesets, too.

After you removed the changeset from your workspace, you replace the content of the stream with the content of your workspace. Note that the current state will be first backed up with a baseline. Also note that the discarded changeset will now appear as outgoing(!) on all other workspaces (e.g. those of your colleagues) which might lead to confusion. All you have to do there is to discard that changeset there, too.

If there are dependencies that prevent discarding a single changeset, the only way is to create other changesets. There you have again two options. Either you create a new changeset that reverses the changes in the one you want to discard (RTC offers a "reverse" option).

Alternatively, you discard the changeset and all those that depend on it and then recreate those that depend on it. For that, just try to accept them again, which will fail and create a patch instead. Apply the patch, check in and deliver. Note that here again the discarded changesets must also be discarded from other workspaces, otherwise they will show up as outgoing there, with similar but conflicting changesets in the incoming queue.

Uli

0 votes


Permanent link
If you reverse version 3, it effectively diff's version 3 against
version 2 and subtracts those changes from version 6.

Cheers,
Geoff

On 1/26/2012 2:23 PM, mehulnp wrote:
How revers operation works in RTC. if i have a changeset with 3 files
if i reverse a changeset it will bring all the 3 files in pending
patches

will this files will always be compared with the latest version ?

Example if the changeset i reversed has file1 version 3 so will it compare file1 version 3
with version 6 ?



Thanks

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

Question asked: Jan 26 '12, 2:20 p.m.

Question was seen: 6,237 times

Last updated: Jun 24 '14, 10:30 a.m.

Confirmation Cancel Confirm