It's all about the answers!

Ask a question

Create workspace from stream at specific snapshot


Anders Nysom (2134) | asked Sep 16 '11, 7:11 a.m.
Hi everyone

I need to create a workspace from a a stream at a specific snapshot. In the project im working on we have multiple streams and it is possible for more than one stream to have baselines with the same name.

Im using the Team Concert SCM tool, and according to the SCM help, you can specify either a stream or a snapshot when creating a workspace. Not both..

So how can i accomplish this, or alternatively, how can i determine if a created workspace is from a specific stream?

I hope you can help me out

Sincerly Anders Nysom

3 answers



permanent link
Geoffrey Clemm (29.9k23035) | answered Sep 17 '11, 6:44 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You would first create your workspace from the desired snapshot, and
then you would use the change-target command to associate that workspace
with the desired stream.

Cheers,
Geoff

On 9/16/2011 3:38 PM, anys wrote:
Hi everyone

I need to create a workspace from a a stream at a specific snapshot.
In the project im working on we have multiple streams and it is
possible for more than one stream to have baselines with the same
name.

Im using the Team Concert SCM tool, and according to the SCM help, you
can specify either a stream or a snapshot when creating a workspace.
Not both..

So how can i accomplish this, or alternatively, how can i determine if
a created workspace is from a specific stream?

I hope you can help me out

Sincerly Anders Nysom

permanent link
Anders Nysom (2134) | answered Sep 19 '11, 4:32 a.m.
Thank you for the quick reply Geoff

However it doesn't quite fix my problem. If I have two streams, both with a snapshot called "build 3" for instance, I wont be able to create a workspace from snapshot, since there are too many matches to the SCM command.

Executing a command like:
scm create workspace -r connection --snapshot "build 3" myNewWS

would give the error:
The requested operation could not be completed because a selector (name, alias, or UUID) supplied by the user either does not match enough items, or matches too many.

permanent link
Geoffrey Clemm (29.9k23035) | answered Sep 19 '11, 7:45 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Some alternatives:

- Find out the UUID of the snapshot, and use that instead of the name.
- Rename one of the snapshots, so the name is no longer ambiguous.
- Use the GUI to create a workspace, because it can handle multiple
snapshots with the same name.

Cheers,
Geoff


On 9/19/2011 6:23 AM, anys wrote:
Thank you for the quick reply Geoff

However it doesn't quite fix my problem. If I have two streams, both
with a snapshot called "build 3" for instance, I wont be
able to create a workspace from snapshot, since there are too many
matches to the SCM command.

Executing a command like:
scm create workspace -r connection --snapshot "build 3"
myNewWS

would give the error:
The requested operation could not be completed because a selector
(name, alias, or UUID) supplied by the user either does not match
enough items, or matches too many.

Your answer


Register or to post your answer.