It's all about the answers!

Ask a question

show all associated baseline on specific version of file


GURVINDER SOKHI (731941) | asked Aug 25 '17, 8:47 a.m.

is the CLI command available to show all baselines/snapshots associated on a specific version of file or directory?

3 answers



permanent link
Shashikant Padur (4.3k27) | answered Aug 28 '17, 12:49 a.m.
JAZZ DEVELOPER
edited Aug 28 '17, 1:42 a.m.

You can list the baselines for a component using the following command:

scm list baseline -w -C component
or
scm list baseline -w <workspace_or_stream> -C component

You can also list all the file versions that were included in a particular baseline:
scm list files -b <baselineName_or_uuid> --show-versionid --depth -

Does that meet your requirement? If not, what is the use case you are trying to solve?


Comments
Geoffrey Clemm commented Aug 28 '17, 3:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 They could get a list of all baselines, and then for each baseline, get a list of all versions in that baseline, to create the list of all baselines that contain a specified version of a specified file, but I doubt that the performance of that approach would be acceptable.   I agree that we would want to find out what the use case is that motivates this request, since there may be a better way to address it.


GURVINDER SOKHI commented Aug 29 '17, 5:03 a.m.

In IBM ClearCase you could query all related baselines attached against a specific element (file or directory). from your answers it looks there is no SCM command in RTC to do likewise.


permanent link
GURVINDER SOKHI (731941) | answered Aug 29 '17, 5:04 a.m.

In IBM ClearCase you could query all related baselines attached against a specific element (file or directory). from your answers it looks there is no SCM command in RTC to do likewise.


Comments
Shashikant Padur commented Aug 30 '17, 2:44 a.m.
JAZZ DEVELOPER

Correct, you cannot list the baselines for a file.


GURVINDER SOKHI commented Jun 27 '19, 5:36 a.m.

has new feature been implemented in v6.0.6.1 to provide list of baselines with a specific file ?


permanent link
GURVINDER SOKHI (731941) | answered Jun 27 '19, 5:36 a.m.

has new feature been implemented in v6.0.6.1 to provide list of baselines with a specific file ?

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.