How to get the recent baselines of a project in cl

2020-03-29 07:16发布

问题:

Can we get the list of baselines of a project in clearcase within in a certain time period, say, last 6 months.

回答1:

The cleartool lsbl command usually lists baselines:

  • per streams
  • from the oldest to the most recent

If you can restrict your search to one stream (ct lsbl -stream ...), you need to list everything and then filter the result.
You can use the fmt option to display only the name of the baseline and its date.

 cleartool lsbl -fmt "%d %n\" -stream...

You would get results like:

2007-01-10T12:41:45+01:00 MYBL_20070110.1263
2007-01-25T16:33:13+01:00 MYBL_20070125.3901
2007-01-26T12:25:23+01:00 MYBL_20070126.7020
2007-01-31T12:21:44+01:00 MYBL_20070131.7277
2007-02-01T16:54:21+01:00 MYBL_20070201.7671

From there, you can filter and/or sort the results.



标签: clearcase