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.)
- Highlight the stream and select the activity from which you want to move the versions.
- Right-click to bring up the properties of the activity.
- Select the Change Set tab, select the Change Set and right-click on it to bring up a context menu.
- Select "Move to Activity...".
- 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.
- Highlight the activity to which you want to move the versions to and click OK.
- 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.
- You will still right-click the "incorrect activity" in ClearCase Explorer and select Properties - this will bring-up the ClearQuest record
- Go to the UCM tab, right-click the file and select Move to Activity
- If you do not see the desired Activity in the list of Select Activities, then
- Click Cancel
- Close the ClearQuest Record
- In ClearCase Explorer, right-click the view icon and select Properties of View
- On the General Tab, under 'Current Default Activity for this View', click Change
- Select the desired activity - if it doesn't appear in that list, click the Browse button and run a query to find it
- Click OK
- Repeat Steps 1-2 for the incorrect activity
- Select the desired activity and click OK
- You will now see the "incorrect activity" again, except now the change set will not be there anymore - close this activity
- 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.)
- Change directory (cd) to the view that is associated with the stream which contains the change set and activity to be moved.
- 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
- 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
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21124923