RTC command to load a specific baseline into a sandbox
I was recently asked:
In ClearCase, you can select a specific VOB and label then download the
related sources. How does one do this in RTC?
I'm not an RTC SCM command line expert, but the equivalent of a CC VOB
label is an RTC component baseline. To download the contents of a
baseline, I believe you have to add that baseline to a workspace and
then download from that workspace.
So that would be a sequence like:
scm create workspace my-ws
scm accept --baseline my-baseline --target my-ws
scm load my-ws
You can or course skip the "create workspace" step if you have a
workspace that you can use.
If I got the syntax wrong, or if there is a better way to do this,
please follow-up.
Cheers,
Geoff
In ClearCase, you can select a specific VOB and label then download the
related sources. How does one do this in RTC?
I'm not an RTC SCM command line expert, but the equivalent of a CC VOB
label is an RTC component baseline. To download the contents of a
baseline, I believe you have to add that baseline to a workspace and
then download from that workspace.
So that would be a sequence like:
scm create workspace my-ws
scm accept --baseline my-baseline --target my-ws
scm load my-ws
You can or course skip the "create workspace" step if you have a
workspace that you can use.
If I got the syntax wrong, or if there is a better way to do this,
please follow-up.
Cheers,
Geoff
One answer
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
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
I was recently asked:
In ClearCase, you can select a specific VOB and label then download the
related sources. How does one do this in RTC?
I'm not an RTC SCM command line expert, but the equivalent of a CC VOB
label is an RTC component baseline. To download the contents of a
baseline, I believe you have to add that baseline to a workspace and
then download from that workspace.
So that would be a sequence like:
scm create workspace my-ws
scm accept --baseline my-baseline --target my-ws
scm load my-ws
You can or course skip the "create workspace" step if you have a
workspace that you can use.
If I got the syntax wrong, or if there is a better way to do this,
please follow-up.
Cheers,
Geoff