It's all about the answers!

Ask a question

API equivalent for 'Show Repository Files' for a changeset?


David Pratt (1621) | asked Jul 28 '10, 1:43 p.m.
The RTC Eclipse UI has the ability to show a linear changeset history for a given stream. Inside that history window, you can right click on a given changeset and hit 'show repository files' which gives you a view of the repository as of that changeset. Where in the jazz SCM API can I get at this functionality? Currently, I only know of the ability to access the repository through an IConfiguration, which can only be accessed from a WorkspaceConnection or a BaselineConnection.

Basically, I want to be able to query the API for the configuration of a given component between baselines.

Additionally, I have another API question - if I have the GUIDs for two distinct changesets, is there a way to query the change history for a component to get all changesets that occurred between the two points?

I know this must be possible somehow, since the Eclipse GUI can do both of these operations - I just don't know where the APIs live.

5 answers



permanent link
hareendran c (6) | answered Aug 06 '10, 8:19 a.m.
SQL Message: Cannot insert duplicate key row in object 'MODEL.ATTRIBUTE' with
unique index 'MODEL_UNIQUE_IDENTIFIER.

This is the Exception I am getting when I want to insert the record into the RTC DB from the Hp QC application. Can you let me know the structure of the table or the api which needs to be called to check the unique value of the column. So that I can insert or update the table based on the unique value of the particular column. Please reply.

permanent link
Geoffrey Clemm (30.1k33035) | answered Aug 02 '10, 7:34 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
An extreme example of John's point is a change set that does not even
represent a legal stream configuration in a given change set history.
For example, supppose that A3 introduced a merge conflict that is
resolved by A5. The change set history ending with A2 does not have a
"current version" of the files that are in conflict.

Cheers,
Geoff

On 8/1/2010 7:51 PM, johnc wrote:
FWIW, the repository files view that is shown for a change set is an
approximation only. For example, if you select change set A3 in a
sequence A1, A2, A3, A4, A5 in history, you may be showing a
configuration that never really existed, because A3, A4, and A5 were
always delivered or accepted together.

There is no explicit API to calculate this "change set arithmetic"
except by doing what Jean-Michel suggests, or alternatively, reverting
to an earlier baseline and accepting the set of additional change sets
that you want to preserve.

Thanks
JohnC
SCM Server

dpratt wrote:
The RTC Eclipse UI has the ability to show a linear changeset history
for a given stream. Inside that history window, you can right click
on a given changeset and hit 'show repository files' which gives you
a view of the repository as of that changeset. Where in the jazz SCM
API can I get at this functionality? Currently, I only know of the
ability to access the repository through an IConfiguration, which can
only be accessed from a WorkspaceConnection or a BaselineConnection.

Basically, I want to be able to query the API for the configuration of
a given component between baselines.

Additionally, I have another API question - if I have the GUIDs for
two distinct changesets, is there a way to query the change history
for a component to get all changesets that occurred between the two
points?

I know this must be possible somehow, since the Eclipse GUI can do
both of these operations - I just don't know where the APIs live.

permanent link
John Camelon (1.7k14) | answered Aug 01 '10, 7:51 p.m.
JAZZ DEVELOPER
FWIW, the repository files view that is shown for a change set is an
approximation only. For example, if you select change set A3 in a
sequence A1, A2, A3, A4, A5 in history, you may be showing a
configuration that never really existed, because A3, A4, and A5 were
always delivered or accepted together.

There is no explicit API to calculate this "change set arithmetic"
except by doing what Jean-Michel suggests, or alternatively, reverting
to an earlier baseline and accepting the set of additional change sets
that you want to preserve.

Thanks
JohnC
SCM Server

dpratt wrote:
The RTC Eclipse UI has the ability to show a linear changeset history
for a given stream. Inside that history window, you can right click
on a given changeset and hit 'show repository files' which gives you
a view of the repository as of that changeset. Where in the jazz SCM
API can I get at this functionality? Currently, I only know of the
ability to access the repository through an IConfiguration, which can
only be accessed from a WorkspaceConnection or a BaselineConnection.

Basically, I want to be able to query the API for the configuration of
a given component between baselines.

Additionally, I have another API question - if I have the GUIDs for
two distinct changesets, is there a way to query the change history
for a component to get all changesets that occurred between the two
points?

I know this must be possible somehow, since the Eclipse GUI can do
both of these operations - I just don't know where the APIs live.

permanent link
Jean-Michel Lemieux (2.5k11) | answered Jul 30 '10, 10:48 a.m.
JAZZ DEVELOPER
The view in Eclipse is doing a lot of tricky work for which the server itself never really supported natively. So you are correct that there is no server equivalent and a configuration is only available for any random change set in a change history. You'd have to create a workspace, discard, then gen the configuration if you would like to create configurations for any point in time.
Jean-Michel

permanent link
David Pratt (1621) | answered Jul 28 '10, 3:11 p.m.
To clarify, in essence, I would like to be able to get the equivalent of an IWorkspaceConnection for the state of the workspace immediately after a given IChangeSet. I have the GUID of the change set, and thus I can create it, but I'd like to be able to access the larger IConfiguration that represents the state of the repository after the changeset has been submitted.

Your answer


Register or to post 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.