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

Can scm workspace replace-components be used to replace baseline of repository workspace from baseline of component?

 I am trying to use "scm workspace replace-components" command to replace baseline of repository workspace from baseline of component.

However it seems as it only support replace from workspace, stream or snapshot
replace-type Type of the item to replace. One of: "workspace", "stream", or "snapshot"


Is there any ways to use scm command to replace baseline of repository workspace from baseline of component?

Thank you in advance!

0 votes


Accepted answer

Permanent link
Yes, you can, but the syntax is rather obscure.  You need to use the "-b" parameter to specify the baseline that you want to use.   But then you still have to specify a <replaceType>  (I have no idea why that is required ... perhaps someone from the scm team could explain).   What I do is just specify "workspace" as the replace type, and then I just name the workspace that I am doing the replace in ... that seems to make the command happy.  So for example, if I want to replace the baseline of component "comp" in workspace "ws" with baseline "bl", you can say:

scm workspace replace-components -b bl -P <my-login> -u <my-password> -r <my-repo> ws workspace ws comp

Note: you'll always want to use "scm help" to look up the syntax of a command, since for some reason, the on-line documentation on the scm syntax frequently has bugs.

David Lafreniere selected this answer as the correct answer

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
× 84

Question asked: Jul 12 '13, 1:30 a.m.

Question was seen: 5,496 times

Last updated: Jul 12 '13, 8:17 p.m.

Confirmation Cancel Confirm