version-controlclearcaseibm-rad-7.5

Will "Deliver Stream" connect my local code to a ClearCase stream?


I am trying to connect my code to a ClearCase Stream. Currently I'm operating under the belief that, once connected to ClearCase, the "Deliver Stream" activity from the drop-down menu will perform this task.

However, all the literature I have read is just vague enough that it isn't clear if this will overwrite the code that is currently in that stream, or if that code will overwrite the code that is currently in my workspace.

I do not want to lose my workspace code, nor do I want to overwrite my ClearCase code if I can help it.

Will this "Deliver Stream" activity do either of these things? And, more importantly, will it actually connect my code to source control?

If not, and this is really the heart of my question, then how do I connect my RAD 7.5 workspace to a ClearCase source controlled file sharing system?


Solution

  • It won't affect your workspace, but I would recommend doing those operations outside of RAD first, to be sure of what is actually taking place:

    I am trying to connect my code to a ClearCase Stream

    First: is your code versioned in ClearCase in the first place: is your workspace part of a (snapshot) ClearCase view attached to an UCM Stream?

    If not, you need to create an UCM dynamic view attached to the right stream, and use clearfsimport to add your files.

    Once the import is done, create a snapshot view on the same stream to be used in RAD (since, as I mentioned in your previous question, dynamic views aren't well suited for compilation)


    if this will overwrite the code that is currently in that stream, or if that code will overwrite the code that is currently in my workspace

    A Deliver Stream is about:

    deliver and integrate change sets to the integration stream once an activity has been completed.
    For example, if your task was to create a new feature A, you can deliver a change set relating only to new feature A into the integration stream.

    That means your current workspace represents a snapshot view loaded and attached to a child stream "FeatureA", and "Deliver Stream" would trigger an UCM deliver between your current (child-)stream FeatureA and the parent Integration stream.

    See more at "Integration stream vs integration view in ClearCase".


    If you do a "Deliver Stream" from RAD:

    As you deliver your changes to a stream, we suggest that you have two different instances of Rational Application Developer open:

    • one workspace will have your development workspace which contains the complete changes,
    • and the other will have the integration workspace open.

    If you invoke the Deliver Stream option from the integration workspace, your changes automatically appear in the workspace.
    If you deliver from your development workspace, you will have modified the file system outside of Rational Application Developer.