Changes the configuration of a UCM stream
ClearCase UCM (cleartool subcommand)
The rebase command changes the set of versions accessible from a development stream to include those represented by baselines created in the integration stream. A rebase operation reconfigures your development stream by changing its set of foundation baselines.
In general, it is recommended that you use the rebase command to update your development work area often in the course of code development, particularly before you deliver work to the integration stream.
Execute a rebase operation from a view attached to your development stream. The current view is used by default. To use another view, specify it on the command line with the -view option. You must check in all work for all views attached to the development stream before beginning a rebase operation. Your current view and stream are used if none are specified.
Use the -preview option to see which baselines would change and which activities would be merged to your development stream if you executed the deliver operation for the specified stream. The default output displays the owner, activity-selector and title for each activity. With the -short option, only the activity-selector is displayed. The -long option displays the default output plus a list of versions that potentially require merging.
The rebase -recommended command reconfigures your stream with the recommended baselines for your project. You can also use rebase -baseline to select other baselines that meet these criteria:
However, you can rebase to an earlier baseline of a component if that component has not been modified in your stream.
You can use the rebase operation for a subset of the components in your development stream if these criteria are met.
You can drop baselines from your stream's configuration using rebase -dbaseline, but only if those baselines' components have not been modified in your stream.
When a rebase operation begins, it creates an integration activity to record changes made during the rebase. The integration activity is set as the current activity in the development view until the rebase operation is completed or canceled.
You are alerted to differences between versions of elements in your view and versions of the same elements that are brought in by the rebase operation. You can modify automated merging with command line options similar to those of the findmerge command (-gmerge, -ok, -query, -abort, -qall, -serial).
You are informed if conflicts exist after an automated merge is attempted on each version. After completing the build and test phase, use rebase -complete to finish the rebase operation.
A rebase operation can be interrupted with CTRL+C or when it encounters an external error or condition that requires more information. To continue the operation, reissue the rebase command with the -resume option. The -complete option resumes the rebase operation, verifies that required merges have been done, checksin any versions that are checkedout, and ends the rebase operation.
Note that checking in merged versions in the development view does not complete the rebase operation. You must use the -complete option for this.
A rebase operation can be interrupted with CTRL+C or when it encounters an external error or condition that requires more information. Reissue the rebase command with the -cancel option to end the rebase operation and return work areas to their previous state.
Before changing the list of foundation baselines, the rebase command checks for components that have changed since the last deliver or rebase operation. If no components have changed, the stream is reconfigured using the revised set of foundation baselines.
A stream can use any baseline of a component in its selection list, with the following restrictions:
For example, if you move forward to BL4 from BL2 and no merges were required, you can back up to BL3, but not to BL1 if you already made changes based on BL2. Also, this allows integration streams to update to a baseline in a new project as long as the currently selected baseline is contained in the newly selected baseline.
Locks: An error occurs if there are locks on any of the following objects: the UCM project VOB, the development stream.
Mastership: The development stream must be locally mastered.
INVOKING THE GRAPHICAL USER INTERFACE. Default: Command-line interface.
SELECTING A VIEW. Default: The current working view.
SPECIFYING BASELINES. Default: None.
RESUMING OR CANCELING A REBASE OPERATION. Default: None.
PREVIEWING THE RESULTS OF A REBASE OPERATION. Default: Displays a short listing.
MERGE OPTIONS. Default: Works as automatically as possible, prompting you to make a choice in cases where two or more nonbase contributors differ from the base contributor. You can specify the following options to modify the merge operation. These work just as they do in the findmerge command.
Examples including wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the command interpreter prompt. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
cmd-context rebase -recommended
Changed config spec for view "sah2_testproj_dv" to reflect its stream's new configuration.Build and test are necessary to ensure that the merges were completed correctly. When build and test are confirmed, run "cleartool rebase -complete".
cmd-context rebase -complete
Rebase in progress on stream "sah_testproj_21211".
Started by "hehir" at 09/20/99 16:25:35.
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |