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

SCM accept -b doesn't work as expected

Hi,

I am trying to load a build workspace with a specific baseline using the SCM CLI command SCM accept.

I cannot get the command to work, it looks like some information is missing.

I have used SCM login to store the credentials initially and submits the following command:

scm accept -d <existing_local_workspace_directory> -b <baseline_name>

The output is:

Unresolved baseline selectors:
<baseline_name>
Problem running 'accept'
Unable to resolve all baseline selectors for "<repository_workspace>".

Any ideas, suggestions or additional information?

Thanks in advance

Claus

0 votes



2 answers

Permanent link
scm accept -b <baseline> has the expectation that the baseline is incoming to the collaboration. This cannot be used if the user is not collaborating with a stream or workspace that contains this baseline.

In 2.0.0.2 the easiest way to get this working is to run "scm workspace replace-components".

Help on workspace replace-components
Replace components from a workspace. Components not found in the target workspace are ignored.

Aliases: replace-component, replace-comp, rplc

Usage: scm workspace replace-components <workspace> <replace> <replace>
workspace - Target workspace or stream (name, alias, or UUID)
replace-type - Type of the item to replace. One of: "workspace", "stream", or "snapshot"
replace - Item to replace (must be of type specified in replace-type), may be alias, UUID, or name
components - Components to replace from the workspace, stream or snapshot

Options:
--all - Indicates all components in the target workspace will be replaced.
-b arg - Indicates the given baseline name is used to replace components.
-o - Run the accept even though there are uncommitted local changes. May cause an overwrite.
-P arg - Password for repository.
-r arg - URI specifying the location of repository.
-u arg - Username for repository.

In 2.0.0.1 or earlier, the process is a little less straightforward, you would need to potentially drop the component, then re-add it, then collaborate with a workspace containing this baseline.

Hope this helps,

JohnC
SCM Server

1 vote


Permanent link
Hi John,

Thank you for the reply :).

As I understand it - part of the problem was my lack of knowledge of the way the build repository workspace is maintained by the build engine, i.e. only to accept change sets and not baselines and snapshots from the stream.

The purpose of this being to keep the history of the buildworkspace as a list of snapshots created in connection with builds only (to provide a clutter free list of build snapshots to the user).

I tried to do a remove/add component on the repository workspace from the eclipse client and the baseline became available on the component in the build repository workspace after the update.

Thank you for your help :).

Claus

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

Question asked: Dec 08 '09, 9:00 a.m.

Question was seen: 5,939 times

Last updated: Dec 08 '09, 9:00 a.m.

Confirmation Cancel Confirm