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

How to load a workspace from a specific snapshot using cli

Is it possible to use the SCM CLI to load a local workspace from a specific stream snapshot. The use case would be that the scm cli was used to create a stream snapshot prior to running a build on a project's build stream. Then the need arises to duplicate the built derivatives from that specific snapshot in the future, say to reproduce an error found in the field. Can this be done using the SCM CLI? I didn't see and options on the scm load command to allow this.

I'm adding to this post. I did find the scm workspace recplace-components (which isn't mentioned in the 2.0.0.2 RTC Information Center) which seems like I should do what I'm looking for. This command help is very cryptic at best though.

I've load created the workspace call MyWorkSpace associated with a stream named "CCCQProject Team Stream" and loaded it using the scm load -r <nickname> MyWorkSpace.

Now I want to replace the contents of this entire workspace with a snapshot that was created on this stream named CCCQProject_Team_Stream_Snapshot_04252010_1456:00:00.

This is the command I used
scm workspace replace-components --all snapshot CCCQProject_Team_Stream_Snapshot_04252010_1456:00:00 -r rtcrtpariadne

and it produced this error
Apr 26, 2010 9:19:25 AM com.ibm.team.filesystem.client.internal.http.HttpConnect
ion readNextRequest
INFO: Handling request: /service/com.ibm.team.filesystem.client.rest.IFilesystem
RestClient/RegisterSandboxes
Problem running 'workspace replace-components':
Unknown type string: "CCCQProject_Team_Stream_Snapshot_04252010_1456:00:00". Must be one of: workspaceCCCQProject_Team_Stream_Snapshot_04252010_1456:00:00streamCCCQProject_Team_Stream_Snapshot_04252010_1456:00:00snapshot

Evidently the command doesn't like the snapshot name I used, but that's the name of the snapshot.

So what should the command look like to be correct?

0 votes


Be the first one to answer this question!

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: Apr 26 '10, 7:56 a.m.

Question was seen: 4,066 times

Last updated: Apr 26 '10, 7:56 a.m.

Confirmation Cancel Confirm