It's all about the answers!

Ask a question

What is the equivalent SCM command for workspace replace-components with snapshot option in RTC 6.0 ?


Tushar Mehta (1526) | asked Jul 07 '16, 2:24 p.m.
edited Jul 12 '16, 12:16 a.m. by David Lafreniere (4.8k7)

I used this command in RTC 4.0.1, where we used to move code from development stream to Integration stream.

scm workspace replace-components target-stream snapshot snapshot-name --all -r repository_url -u userid -P password

This command used to sync the code in target-stream based on what is there in snapshot-name

When I run this command, in RTC 6. I get a message that it is depreciated.

I know, I can run this command by setting SHOW_DEPRECATED_HELP=1. But my worry here is if in next release of RTC the support of this is removed. Thus wanted to know the equivalent of this in RTC 6.

Accepted answer


permanent link
Shashikant Padur (4.2k27) | answered Jul 07 '16, 11:17 p.m.
JAZZ DEVELOPER
edited Jul 07 '16, 11:18 p.m.
Tushar,
You can still run the command "scm workspace replace-components" and it will work. It will not be removed anytime soon. This command has been replaced with "scm set component" and it is recommended that you start using the new command name.
The SHOW_DEPRECATED_HELP can be set so that you could get the command help text for the deprecated commands.
Tushar Mehta selected this answer as the correct answer

Comments
Tushar Mehta commented Jul 08 '16, 12:14 a.m.

Thanks a lot it worked.

Your answer


Register or to post your answer.