Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Rational Team Concert or RTC: How to reverting back to a point in history?

At my Work we use RTC for SCM.

This seems like a basic question for Source Control Management.
is there a way to roll back an entire workspace to a point in the past?

I have seen the history option under "team" but that seems to only be for one file.

thanks

like image 785
madmaze Avatar asked Jun 10 '11 19:06

madmaze


3 Answers

You can also replace a component from a baseline or component in another workspace/stream via the IDE:

  • in the Team Artifacts view or Pending Changes view, expand your workspace to show the components
  • select the component and choose Replace With > Baseline... or Component From Another Workspace or Stream...

If you want to replace multiple components at once, you can:

  • open the workspace editor (choose Open on the workspace)
  • in the Components section, click Add...
  • choose the source (baseline, workspace/stream, or snapshot) and which component(s)
  • when warned that the selected components are already in the workspace, click OK to replace
  • save

Or, if you don't have a baseline or other workspace/stream capturing the point in the past you want, you can:

  • select the component (in the TA or PC view)
  • choose Show > History (this shows the entire change history for the component, not just for a specific file)
  • select the recent change sets that you don't want
  • choose Discard...
like image 199
Nick Edgar Avatar answered Sep 30 '22 14:09

Nick Edgar


It depends how you specify that point in the past.
If you have previous baselines that do represent said point, then, according to this thread:

If you do not have a workspace,

scm create workspace my-ws
scm workspace add-components my-ws comp1 comp2
scm accept --baseline my-baseline --source src-ws --target my-ws
scm load my-ws

If you already have a workspace:

scm workspace replace-components --baseline my-baseline my-ws workspace src-ws 
like image 25
VonC Avatar answered Sep 30 '22 14:09

VonC


If you don't have a baseline, you can also discard the change sets that have been delivered to the stream since the time you care about.

You do that by calling scm discard <change-set-selector>. To find the change sets to discard, use scm history.

like image 31
Erigami Avatar answered Sep 30 '22 13:09

Erigami