Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

The max number displayed by "scm list snapshots/baselin

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!

0 votes



2 answers

Permanent link
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!

0 votes


Permanent link
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.

0 votes

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 23 '11, 3:35 a.m.

Question was seen: 5,541 times

Last updated: Oct 22 '13, 5:38 p.m.

Confirmation Cancel Confirm