Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Accepting a baseline from a private workspace

The API for accepting baselines into a workspace:

com.ibm.team.scm.client.IWorkspaceConnection.accept(int, IWorkspaceConnection, IChangeHistorySyncReport, List, List, IProgressMonitor)

requires to have a "source" workspace connection, which you can't do if you don't have access to such workspace (for example, when is set to "private").
Although I can understand why it is required, it seems contradictory, since baselines are "public" (you can see them always in the component's baselines, even if the workspace are private). You can even add/replace your own workspace component from that baseline.

Is there another way I can do this operation, without having access to the source workspace?

0 votes



One answer

Permanent link
The concept of "accept" means you are 'accepting it from somewhere', so unfortunately the source is needed in this API.

One benefit of accepting baselines from a source is shown in the Baseline History Graph, which helps track where baselines came from, and how they flow through the system (across workspaces /streams). As a reference to this feature, see:

The other option is to perform a component replace. See:
IFlowNodeConnection.replaceComponent(IComponentHandle comp, IConnection seed, IWorkspaceHandle operationSource, boolean produceDetailedUpdates);
Note: This API also gives an opportunity to provide a operationSource, so I recommend using that when possible as well.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,935
× 1,381
× 457
× 84
× 19

Question asked: Dec 17 '14, 8:55 a.m.

Question was seen: 5,221 times

Last updated: Jun 28 '19, 1:42 p.m.

Confirmation Cancel Confirm