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
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/
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.