It's all about the answers!

Ask a question

The max number displayed by "scm list snapshots/baselin


Shinobu Ishida (1371915) | asked Aug 23 '11, 3:35 a.m.
Hi,

I use RTC 3.0.1.
scm CLI " scm list baselines" and "scm list snapshots" have option "-m/---max arg" to set the number of snapshots/baselines to be displayed.
Does anyone know the maximum number of this argument that can be set?



--------------------------------------------------
Usage: scm list baselines

Options:
--certificate arg - The file containing the user's login certificate.
--smartCard - Use the connected smart card for authentication.
-C ... - The components to select (name, alias, or UUID).
-m arg - The number of baselines to be listed.
-P arg - Password for repository.
-r arg - URI specifying the location of repository.
-u arg - Username for repository.
-w arg - Workspace or stream whose baselines are to be listed (name, alias or UUID).

--------------------------------------------------
Usage: scm list snapshots <workspace>
workspace - Workspace or stream associated with the snapshot

Options:
--certificate arg - The file containing the user's login certificate.
--smartCard - Use the connected smart card for authentication.
-m arg - The number of maximum results that should be returned. Must be greater than 0. Omitting this option defaults to 10 results.
-P arg - Password for repository.
-r arg - URI specifying the location of repository.
-u arg - Username for repository.
-v - Show snapshot comments.
--------------------------------------------------

Thanks in advance!

2 answers



permanent link
Glenn Herbert (12667) | answered Nov 02 '11, 1:57 p.m.
I've been using --maximum 500 with no problem in all my scripts as that value exceeds the number of lines I expect output. I would very much hope there is no maximum value that can be specified (other than int or uint). The value is in a properties file in case one day (which I expect within the next year or so) to exceed.

Having a default output limitation of only 10 lines is bizarre but then declaring an option for the user to exceed, assuming they could even guess how many lines of output there might be, is even more bizarre - very backward thinking. Most outputs generate a list of everything then use an option, or some external utility (ie head/tail/pg/more), to limit.

Hi,

I use RTC 3.0.1.
scm CLI " scm list baselines" and "scm list snapshots" have option "-m/---max arg" to set the number of snapshots/baselines to be displayed.
Does anyone know the maximum number of this argument that can be set?



--------------------------------------------------
Usage: scm list baselines

Options:
--certificate arg - The file containing the user's login certificate.
--smartCard - Use the connected smart card for authentication.
-C ... - The components to select (name, alias, or UUID).
-m arg - The number of baselines to be listed.
-P arg - Password for repository.
-r arg - URI specifying the location of repository.
-u arg - Username for repository.
-w arg - Workspace or stream whose baselines are to be listed (name, alias or UUID).

--------------------------------------------------
Usage: scm list snapshots <workspace>
workspace - Workspace or stream associated with the snapshot

Options:
--certificate arg - The file containing the user's login certificate.
--smartCard - Use the connected smart card for authentication.
-m arg - The number of maximum results that should be returned. Must be greater than 0. Omitting this option defaults to 10 results.
-P arg - Password for repository.
-r arg - URI specifying the location of repository.
-u arg - Username for repository.
-v - Show snapshot comments.
--------------------------------------------------

Thanks in advance!

permanent link
Gene Ratzlaff (1112) | answered Oct 22 '13, 5:38 p.m.
In practice (version 4.0.3), I have found two problems with this CLI command:
1) Although the CLI accepts larger values, only 2048 values are returned.
2) Worse yet, it isn't always the most recent 2048 values. The eclipse client, on the other hand, seems to always return the most recent snapshots.

One can delete snapshots using the GUI, but only one at a time, AFAIK.

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.