It's all about the answers!

Ask a question

delete a component


Stefan Stern (4062128) | asked Dec 10 '08, 6:28 a.m.
Hello
We just reflected on Jazz SCM Components... what happens in the scenario
below?

You have:
a repo with one stream: 'myTeam Stream' and two repository workspaces
'userA workspace', 'userB workspace'.
All are in sync, no pending changes. The content is component 'A' and
Component 'B'. Each has two projects.
A: com.example.a.one, com.example.a.two
B: com.example.b.one, com.example.b.two

Then take the following action:
Create a snapshot, named 'my test snapshot', on 'userA workspace'. This
will create two new baselines, as both components received changes since
the last baseline. Then promote this snapshot to the stream and deliver
the outgoing baselines for both components.
Now you delete the component from repository workspace 'userA
workspace'. You deliver this outgoing component removal to the stream.

Now, you look for all snapshots on the stream 'myTeam Stream' and select
the 'my test snapshot' from above. There you select the action 'create
stream from Snapshot'. Will this snapshot contain both components or is
the deleted component just skipped?

Would the behavior above change, if 'userB workspace' accepted the
incoming component removal before creating a stream from the snapshot?
What happens if a component does not belong to any workspace and any
stream at all? Is it removed from the repository? Or is it removed only
in case it does not belong to a snapshot any more? Or are SCM elements
never removed? In case of the latter, how could I restore a component
that was removed from all streams, snapshots and workspaces?

Of course I could try that in a test installation (and already did for
some answers), but I guess this could be intresting for other users,
too. :) Couldn't find a hint in the documentation so far.

Kind regards,
Stefan

2 answers



permanent link
Dmitry Karasik (1.8k11) | answered Dec 10 '08, 10:01 a.m.
JAZZ DEVELOPER
Will this snapshot contain both components or is
the deleted component just skipped?

The snapshot contains both components, and so does the new stream you
create.

Would the behavior above change, if 'userB workspace' accepted the
incoming component removal before creating a stream from the snapshot?

No.


What happens if a component does not belong to any workspace and any
stream at all? Is it removed from the repository? Or is it removed only
in case it does not belong to a snapshot any more?

Nothing special happens, a component is never removed from the repository.

Or are SCM elements
never removed?

Some SCM elements can be removed, like workspaces.

In case of the latter, how could I restore a component
that was removed from all streams, snapshots and workspaces?

You cannot remove a component from a snapshot. But assuming you didn't
have snapshots, there will always be at least 1 baseline that contains
the component (Initial baseline), you can always add that baseline to
your workspace to restore the component in your workspace.


- Dmitry

permanent link
Stefan Stern (4062128) | answered Dec 11 '08, 5:18 a.m.
Hallo

Thanks for your answers! :)

Kind regards,
Stefan

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.