Find recent changes in a stream
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
Comments
Thanks a lot for your quick answers !
I will give comparing snapshots with "scm compare" a try. Then the file paths are resolved although i dont have a sandbox. I fear that using "list changesets" and "list changes" will result in a lot of more interaction with RTC than the snapshot approach.
Is the fact that the paths in my json retrieved by "scm history" are not resolved a bug or does it work like designed?
It could not resolve the path because I believe you did not provide the workspace option when running the scm history command. Try by providing the workpsace info.
I did specify a workspace (in my case it is a stream). Here is the command i started:
scm show history -j -r <ourRepositoryUrl> -u <userId> -P <password> --component seu_bld-source -w seu_bld-04.26.00-dev