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
Ralph Schoon (63.5k●3●36●46)
| answered Feb 24 '14, 7:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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/ |
Geoffrey Clemm (30.1k●3●30●35)
| answered Feb 24 '14, 12:30 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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
Hazem Darwish
commented Feb 24 '14, 1:39 p.m.
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)
Geoffrey Clemm
commented Feb 24 '14, 1:49 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.