It's all about the answers!

Ask a question

RTC Client API: How to print all files and folders under a component in a workspace which contains a change set I have just submitted ?


Gidi Gal (962057) | asked Feb 12 '14, 4:04 a.m.
edited Feb 12 '14, 9:47 a.m.
Hello to the forum members,

I need to print all files and folders under a component in a workspace which contains a change set I have just submitted, and also print the list of changed artifacts in that change-set.

How do I do that using RTC client API ?

Thanks,
Gidi

One answer



permanent link
Shashikant Padur (4.2k27) | answered Feb 12 '14, 4:27 a.m.
JAZZ DEVELOPER
From the scm command line,
Use 'scm list remotefiles --workspace <your_workspace> <your component>' to list the file/folders in a workspace and component.
Use 'scm list changes <change_set_id>' to list the changes in the change set.

Comments
Gidi Gal commented Feb 12 '14, 5:25 a.m.

Hi Shashikant,

Thanks for your reply. I forgot to mention that I'd like to use RTC API for achieving this goal.

Best regards,
Gidi


Gidi Gal commented Feb 15 '14, 6:22 a.m.

Hi Shashikant,

I tried the following call:

scm list remotefiles -w "Test100 Workspace" "ComponentA"
subcommand "remotefiles" requires argument-based initialization, but does not provide a directory argument.

What is missing in my call ?

Thanks,
Gidi


Shashikant Padur commented Feb 16 '14, 11:04 p.m.
JAZZ DEVELOPER

You need to specify the repository information. Specify -r <repoUri or repoNickName>. For help run 'scm help list remotefiles'.

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.