Extending RTC Client - How to query a repository for the date of a specific baseline or snapshot
1.From an RTC eclipse client ,how to programatically display a list of available snapshots/baselines for a current stream .
2.Once a snapshot is selected by the user , how to (programatically) get the creation date for that snapshot ?
The purpose is to keep that date for later comparison with modification dates of single file in the current stream.
3. How to get the list of files modified or created after a specific date ?
Thank you
2 answers
To find all files in a specified stream that are created/modified after a specific date, you can use the "Search -> Jazz Source Control -> Change Sets ..." operation in the Eclipse client.
Comments
Thank you Geoffrey !
Is there a way to run the same query by the means of APIs ? With the purpose of having a list of files in the memory to be treated further before being displayed to the user ?(display is mostly within RTC client)
The easy answer is "yes, there is a way to run the same query by means of the API" (since that's all the client has at its disposal). But I'll have to defer to others to give you guidance on what specific APIs to use.
Hi,
you can use IWorkspaceConnection.getBaselineSets(monitor) to get the baseline sets (as far as I know a baseline set is a snapshot)
You can use IBaselineSet.getCreationDate() on the baseline to get the date
I can't answer the last one. I posted code that you can study here: https://rsjazz.wordpress.com/2013/10/15/extracting-an-archive-into-jazz-scm-using-the-plain-java-client-libraries/
you can use IWorkspaceConnection.getBaselineSets(monitor) to get the baseline sets (as far as I know a baseline set is a snapshot)
You can use IBaselineSet.getCreationDate() on the baseline to get the date
I can't answer the last one. I posted code that you can study here: https://rsjazz.wordpress.com/2013/10/15/extracting-an-archive-into-jazz-scm-using-the-plain-java-client-libraries/