Find recent changes in a stream
![]()
Hello,
i need to get all changes since a certain timestamp from our streams on file level. My approach was to use the "scm show history" command. I have 2 problems there: 1. I cannot specify a timestamp, only the number of results. 2. In my (json-)results the file paths are missing (e.g. "path": "\\<unresolved>\\config.xml" instead of "path": "\\myProject\myFolder\config.xml" which would be the correct path of the file in the component). I dont want to create real sandboxes where at least nr. 2 would be fixed because we have hundreds of components. I there a chance to get these informations using the Java API? Is it possible then to also get this based on a snapshot rather than a stream? thanks & regards, Nils |
2 answers
![]()
Shashikant Padur (4.2k●2●7)
| answered Apr 13 '14, 11:33 p.m.
JAZZ DEVELOPER edited Apr 13 '14, 11:34 p.m.
In RTC, the changes are checked in to a changeset. You can get the latest changesets by using "list changesets" command.
For ex:
To list the latest changes for a workspace or stream: lscm list changesets --workspace <workspace or stream name/uuid> --created-after <timestamp>
If you would like to narrow your listing to a component specify the --component option along with the --workspace option. You can also specify the type of file change such as addition/modification etc. Take a look at the help for more information.
You can then list the changes in the change set using "list changes" command.
|