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
Accepted answer
Use 'scm show history' shows the history of the workspace/component in chronological order. It also shows the created date and added date.
Comments
showing 5 of 9
show 4 more comments
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Feb 17 '17, 7:28 p.m.Gergely Mincsovics
Feb 20 '17, 3:50 a.m.