Create repository workspace with one specific component
How to create repository workspace with one specific component?
scm create workspace -s $STREAM $REPO_WORKSPACE
The above command gets all the components from the stream (if multiple components are present).
I am trying to get just one specific component into my repository workspace and I have tried combinations of commands like:
scm create workspace -s $STREAM $REPO_WORKSPACE $COMPONENT
scm create workspace -s $STREAM $REPO_WORKSPACE
The above command gets all the components from the stream (if multiple components are present).
I am trying to get just one specific component into my repository workspace and I have tried combinations of commands like:
scm create workspace -s $STREAM $REPO_WORKSPACE $COMPONENT
One answer
Tim,
You cannot do that in a single operation today. The create workspace command allows to
1) Create a workpace with one default component or
2) Create a workspace with no component or
3) Create a workspace with a stream as the flow target and add all the components of the stream to the workspace or
4) Create a workspace and add all the components of the snapshot (with snapshot as the base) to the workspace.
To add a single component from a stream:
1) scm create workspace $REPO_WORKSPACE --empty
2) scm workspace add-components $REPO_WORKSPACE $COMPONENT
3) scm workspace change-target $REPO_WORKSPACE $STREAM
Allowing the capability to add one component from a stream would be a good addition to the create worksapce command.