It's all about the answers!

Ask a question

How to narrow down lscm query to stream for custom attributes?

Karthik Krishnan (8594100149) | asked Aug 26 '16, 7:21 a.m.
edited Sep 04 '18, 2:24 p.m. by David Lafreniere (4.7k7)

I would like to get a list files (and components) along with version which has specific scm custom attribute set for a given stream.

What I know is that I can issue the following command to get:

  • Only Files & versions
lscm query -i --file "(has_attr(review_status)" -r


I could not use the --stream along with this to narrow down to a stream and display the files component wise.

Is this possible with scm CLI?

Karthik Krishnan commented Sep 06 '16, 3:41 a.m.

Is this possible?

One answer

permanent link
David Lafreniere (4.7k7) | answered Sep 04 '18, 2:23 p.m.
This is not possible with the current CLI commands.

It looks like the "--file" option only supports the argument of "in_baseline(' baseline UUID ')" and not "in_stream(' stream UUID ')" for example.

If you take a snapshot of the stream (which ends up creating a baseline on each component) you could then use that command.

Your answer

Register or to post your answer.