It's all about the answers!

Ask a question

Iscm command line : how to check out a single artifact from stream without the load of the complete project to the disc?


Raj Kumar (21217) | asked Mar 19 '19, 2:56 a.m.

I am using RTC-scmTools-Win64-6.0.6 , Just want to know Is there any command is there to check out a single artifact from stream without the load of the complete project.

One answer



permanent link
Shashikant Padur (4.2k27) | answered Mar 19 '19, 4:46 a.m.
JAZZ DEVELOPER
To load a single file you could do the following: scm load <workspace> <component>/<path_of_the_file_in_the_component>
Note: This creates a sandbox. You can update the file and checkin to the respository workspace and deliver the file to the stream.

To just get the file contents without a sandbox:
1) List the changesets in the history: scm show history <workspace> <component> <path>
2) Pick the last change set and get the change/file in the change set: scm get change <change_set_uuid> <path> <output_path>


Comments
Raj Kumar commented Mar 20 '19, 1:55 a.m.
i am trying below command its not working for me

lscm load -r https://alm.server.com/ "C:/path of local directory" "componentName/"readMe.docx"

Problem running 'load':
Unmatched workspace "C:/path of local dirctory"


Shashikant Padur commented Mar 20 '19, 1:59 a.m. | edited Mar 20 '19, 2:02 a.m.
JAZZ DEVELOPER
Yes, the workspace is missing from the command: scm load <workspace> <component>/<path_of_the_file_in_the_component>

There are couple of issues with your command. Here is the correct syntax:
lscm load -r https://alm.server.com/ -d "C:/path of local directory" workspaceName componentName/readMe.docx
Quotes are a must only if there is spaces in your input.

Your answer


Register or 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.