How can I revert repository workspace back in time?
I have created a repository workspace for a stream. The stream has years of history before the first baseline was created (initially the code was in a CVS repo, so all of the CVS history exists prior to the baseline). How can I create/revert a repository workspace so that it is back in time to the initial delivery?
4 answers
Several things to mention here.
- The pending changes always shows the difference between the repository workspace and the streams current state
- If you discard a change set in a workspace, but it is still in the stream you flow to, you see it as incoming
- I haven't tried suspending changes that are still incoming - have to try that once
If you want to bring a workspace into a certain state, you can
- Rebase to a snapshot
- Rebase single components to a baseline
If you have data on a stream that you want on top of that workspace state, you can accept it in.
Comments
1. Select the component in the Pending Changes view and run 'show history' on it. That will show you the history view, listing all of the change sets "in" the component.
2. Select all of the change sets you want to get rid of in the history view. Run 'Discard' from the context menu.
I suspect you don't see the change sets as incoming because your workspace isn't flowing with a stream. That's bitten other users in the past.
If you only want a single change set from the beginning of time, you can:
1. replace the component with the component's initial baseline.
2. load the repo workspace into your sandbox. (haha! it's empty, so nothing is going to happen! we're using this to get the workspace into your Pending Changes view)
3. find the change set (either on a work item, or in the history of the stream), then run "accept" from the context menu.
Comments
Lauren Hayward Schaefer
JAZZ DEVELOPER May 19 '15, 7:23 a.m.Lauren Hayward Schaefer
JAZZ DEVELOPER May 19 '15, 7:36 a.m.