Create workspace from stream at specific snapshot
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
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
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:
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
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.
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.
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:
- 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.