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! |
2 answers
I've been using
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, |
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
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.