IBM Support

Moving a UCM version in a change set from one activity to another

Question & Answer


Question

How can you move an IBM® Rational® ClearCase® version from a UCM activity's change set to a different activity?

Cause


There may be circumstances where you want to deliver an activity, however, the activity contains some change set versions that you are not yet ready to deliver. In this case, you can use this procedure to move those change set versions to another activity that you can then deliver at a later time. Be sure to pay attention to any version dependencies when you are performing the move.

Answer

From the ClearCase Project Explorer:

(Note: Refer to the GUI method for UCM-CQ section below for additional information if you are using the UCM ClearQuest integration.)

  1. Highlight the stream and select the activity from which you want to move the versions.

  2. Right-click to bring up the properties of the activity.



  3. Select the Change Set tab, select the Change Set and right-click on it to bring up a context menu.

  4. Select "Move to Activity...".



  5. From the available list of activities choose an existing one or choose to create a new activity by selecting the "New" button and creating the new activity.

  6. Highlight the activity to which you want to move the versions to and click OK.



  7. Click OK again.



GUI method for UCM-CQ:

If you are using the UCM ClearQuest integration, moving the change set to another activity is a little bit different than the above steps as noted below.

  1. You will still right-click the "incorrect activity" in ClearCase Explorer and select Properties - this will bring-up the ClearQuest record
  2. Go to the UCM tab, right-click the file and select Move to Activity
  3. If you do not see the desired Activity in the list of Select Activities, then
    1. Click Cancel
    2. Close the ClearQuest Record
    3. In ClearCase Explorer, right-click the view icon and select Properties of View
    4. On the General Tab, under 'Current Default Activity for this View', click Change
    5. Select the desired activity - if it doesn't appear in that list, click the Browse button and run a query to find it
    6. Click OK
    7. Repeat Steps 1-2 for the incorrect activity
  4. Select the desired activity and click OK
  5. You will now see the "incorrect activity" again, except now the change set will not be there anymore - close this activity
  6. Right-click the correct activity, select properties and when it opens, click on the UCM tab to confirm that the file is listed there



From the command line:

(Note: Refer to the Command line method for UCM-CQ section below for additional information if you are using the UCM ClearQuest integration.)

  1. Change directory (cd) to the view that is associated with the stream which contains the change set and activity to be moved.

  2. M:\test_proj1>cleartool lsact -long new
    activity "new"
    13-Jul-01.13:10:47 by username.cc_users@username_ntw
    owner: username
    group: CC_USERS
    stream: test_proj1.9907@\test_pvob
    title: new
    change set versions:
    M:\test_proj1\test_comp\dir1\mytext.txt@@\main\test_proj1.9907\1
    M:\test_proj1\test_comp\dir1\hello.txt@@\main\test_proj1.9907\1

  3. M:\test_proj1>cleartool chact -fcset new -tcset MOVED M:\test_proj1\test_comp\dir1\mytext.txt@@\main\test_proj1.9907\1
    Moved version "M:\test_proj1\test_comp\dir1\mytext.txt@@\main\test_proj1.9907\1"
    from activity "new" to activity "MOVED".

Command line method for UCM-CQ:

1a. Set the view to the desired activity using the ClearQuest record number for that activity
> cleartool setact <ClearQuest Record Number>


For example:
  > cleartool setact MYUCM00000033
where MYUCM00000033 is the correct activity

Then do Steps 2 & 3 of the above steps (be sure to reference the CQ Record numbers,
For example:
Friday, July 31, 20092. > cleartool lsact -long MYUCM00000032
where MYUCM00000032 is the incorrect activity

3. > cleartool chact -fcset MYUCM00000032 -tcset MYUCM00000033
M:\test_proj1\test_comp\dir1\mytext.txt@@\main\test_proj1.9907\1

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"UCM: Activity","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"2002.05.00;2003.06.00;2003.06.01;2003.06.10;2003.06.12;2003.06.13;2003.06.14;2003.06.15;2003.06.16;7.0;7.0.0.1;7.0.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21124923