It's all about the answers!

Ask a question

Difference between Suspend, Discard and Reverse?


Ashok Sharma (3211018) | asked Sep 30 '14, 2:46 a.m.
Hi All,
Can anyone please help me to understand the difference between Suspend, Discard and Reverse?

Thanks

Accepted answer


permanent link
Rohit Balduwa (945311) | answered Sep 30 '14, 4:04 a.m.
Hi Ashok

Listing the details below:

Discarding change sets from workspaces:
If you have accepted a change set but decide later that you do not want it in your workspace, you can discard it and return the change set to the Incoming folder for the component.
You can also discard a change set that you created but have not yet delivered. Discarded change sets of this type remain in repository but are not placed in any special folder.
To make it easier to retrieve a discarded change set that does not exist in any other stream or workspace, you can associate it with a work item before you discard it and then accept it from the work item later. You can also search for change sets by using the Rational Team Concert™ source control search tool.
Details:
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/t_discarding_change_set.html&scope=null

Reversing change sets from workspaces:
By using the Reverse operation, you can undo a delivery by creating a special change set that, when applied to a flow target, removes the changes that are made by a change set without removing the change set itself. When you remove a change set from a sandbox or stream, it is displayed as an outgoing change set bearing the original owner and creation date. Reversing a change set accomplishes the same thing as removing it, and avoids this occasionally confusing side effect.
Reverse creates a Rational Team Concert™ source control patch that, when merged into your sandbox, removes the changes that were made in a specific change set (the change set that it was created to reverse), and creates a new change set. You can deliver this change set to reverse those changes in sandbox flow targets.
Details:
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/t_reversing_change_set.html&scope=null

Suspending change sets from workspaces:
There might be times when you must begin working on a new change set before you are finished with one that is in progress in your workspace. To do this, you can suspend the current change set, which removes it from your workspace but preserves it in the repository. The files in a suspended change set revert to the state they were in before the change set was started, and the change set itself is moved to a special Suspended folder so that no new changes can be added to it.
You can resume working on a suspended change set by right-clicking it and clicking Resume.
Details:
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/t_discarding_change_set.html&scope=null

If this answers your question please mark it as accepted.
Ashok Sharma selected this answer as the correct answer

2 other answers



permanent link
Arun K Sriramaiah (3.2k12265) | answered Sep 30 '14, 3:50 a.m.

Hi Ashok,

Suspending

 a change set removes it from the repository workspace and unloads it from the sandbox but preserves it in the repository so that it can be restored when you want to resume work on it.

Reverse:
If you want to undo the delivery of a change set, you can create a change set that reverses all the changes in it and then deliver the reversed change set.
Discard:
To remove a change set from your workspace, you can discard it. If you discard a change set from your workspace, you can also discard it from the stream the workspace flows to.

http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m5/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/t_suspending_change_set.html?resultof=%22suspend%22%20&scope=null

Regards,

Arun.


permanent link
Simon Eickel (1.1k75457) | answered Sep 30 '14, 3:51 a.m.
edited Sep 30 '14, 4:12 a.m.
Suspend:
put the work at a "shelve". This means this work is not undone but is paused. At a later step you can restart working on suspended changes with the resume command.
More Information: https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/t_suspending_change_set.html&scope=null

Discard:
Discarding e.g. a change set removes this change set from the artifact (e.g. Repository Workspace) that those changes are removed.
Discarding changes won't delete those changes from the database but remove the "visibility" of the changes within the artifact where the discard was done.
More information: https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/t_discarding_change_set.html&scope=null

Reverse:
Reverting changes means nothing else than create a new change set which removes the changes a previous change set did.
E.g.: (CS - ChangeSet)
CS1 - create test.txt
CS2 - add line "Hello world" to test.txt
CS3 - add line "was just a test" to test.txt
Revert CS3 creates new CS4
CS4 - removes line "was just a test"
More Information: https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/t_reversing_change_set.html&scope=null

Hope this helps,
Simon

Your answer


Register or to post your answer.