Search code examples
clearcaseclearcase-ucm

Cancel or complete a rebase operation in UCM


I had a dynamic view and I started a re-base operation on that view, then before doing a cleartool rebase -complete I removed that view accidentally!

Now the problem is that I cannot do a rebase -complete or rebase -cancel in another view attached to the same stream.
How can I resolve this issue, I get the following error:

cleartool: Error: No tag in region for view "00000000.00000000.0000.00:00:00:00:00:00".
cleartool: Error: Unable to start view "".
cleartool: Error: Unable to cancel rebase.

Solution

  • With cleartool rebase, you can try and resuming the operation with a new view (which should be attached to the same destination stream)

    cleartool rebase -resume -reset -view aNewUCMView
    

    that would be using the option:

    -reset -vie/w new-development-view_tag
    

    Resets the target view to a new development view.
    Use this option should the target view become inaccessible.

    As in "Can't resume or rebase stream on snapshot view on windows":

    I would recommend for that new view to be a dynamic one, instead of a snapshot one: it is quicker to start and succeed/fail, and you can do multiple tests without waiting for the view to update itself (update being done only in a snapshot view).


    If you see:

    cleartool: Error: The view cannot be retargeted because 
    the current integration activity "rebase.STREAM_NAME.20141124.170858" 
    has checkouts.
    

    You will have to unco everything (see first "How to find all checkedout files with ClearCase cleartool?"), and then:

    cleartool rebase -cancel -reset -view aNewUCMView