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

scm change sets ordered by date added

Hi All, my question is about the command line interface, scm. I would like to traverse change sets from the command line, chronologically, as they were added to the workspace. For this I used the following,

scm --show-uuid y list changesets -r <repo uri> -u <user> -w <workspace> -m <max number of change sets to list>
The list of change sets returned looked ok at first sight. However, I realized later that the order is not correct. By accepting the changes one by one to a forked workspace ended up in error messages
The change sets that you are accepting are built on change sets that are not in your repository workspace. Either accept all change sets using the "accept-missing-changesets"
Unfortunately, the suggested accept-missing-changesets also did not help, and it is not acceptable to me either. It is not acceptable, because I want the traversal to happen change set by change set and not on groups of change sets.
Next I tried the options --created-after and --created-before, but these I cannot use, since the change set creation date is irrelevant to me. I need the change sets ordered by the time they entered the workspace. Finally, the -json option does not give the date added either.
On the other hand, I saw that the RTC client gui has got both date created and date added fields. It means that the data is available.

Note that my preference is to get the list of changes of the complete workspace, not just for a component. Additionally, I prefer using scm to other tooling. Using the java api would be also fine though. It must work from the command line, otherwise the integration with other tooling would not be possible.

Gergely
Build Id: RTC-I20140807-0233

related:
https://jazz.net/forum/questions/40813/change-sets-date-created-time-is-shown-wrongly
https://jazz.net/forum/questions/86866/scm-list-snapshots-in-the-order-of-creation-date

1

1 vote

Comments

You might want to explain why you are doing this traversal ... there might be a better way of obtaining the data.   

to find in an automated way at which change list exactly a test went wrong


Accepted answer

Permanent link

Use 'scm show history' shows the history of the workspace/component in chronological order. It also shows the created date and added date.

Gergely Mincsovics selected this answer as the correct answer

0 votes

Comments

Hi Shashikant, I did not know about show history. It does show the 'date added'  field to second precision, and it follows the data added chronological order, too. This brings me closer to the solution, thank you! The only bad surprise is that it requires a component parameter next to the workspace parameter.

Unable to determine component. Specify component.

So I cannot get the merged workspace history out of this command. Is there some way to do that with scm or java api?

I am not sure. Probably you could raise a work item to say that you need the workspace history without specifying the component which should show the history across components.

how can I do that?

 https://jazz.net/mystuff#tab=workitems and click on "Submit a bug" button on the top right corner.

Shashikant, my first impression of scm show history was that it showed the history chronologically by date added. This is true. However, I saw a severe limitation. It only shows the first 100 records no matter how I set the maximum (-m option). Is there a way to circumvent this?

I believe this was fixed in 6.0 and later versions.

6.0.1 says
'The maximum number of change sets that can be requested in 1000'

I believe that is the limit as of today.

showing 5 of 9 show 4 more comments

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
× 12,019
× 1,202

Question asked: Feb 17 '17, 11:21 a.m.

Question was seen: 2,128 times

Last updated: Jun 16 '17, 5:19 a.m.

Confirmation Cancel Confirm