Is it possible to restore a deleted component ?
I have created a snapshot of my stream and can view the deleted component by viewing the snapshot. Is it possible to re-add the component to a stream from a snapshot ?
Or is there another method of restoring a component ?
(as opposed to ClearCase, where I had to rebase an UCM stream with a component baseline)
If by deleted you mean removed from your disk, you can simply reload your repo workspace into your local workspace (or sandbox).
Note: a local workspace or sandbox is the same than a ClearCase snapshot view, but you wouldn't call it "snapshot".
In RTC, a snapshot is a global label which included all component latests on a stream.
If by deleted, you mean removed from your repository workspace, yes, you can add it back (it is still in the Stream), and click on save.
If by deleted, you mean removed from the Stream itself, you can add it back at the Stream level (open that stream, and in the "Component" section, click on "Add").
If it is still in your repo workspace, you can then deliver it back to the stream.
The OP adds:
I mean "removed from the Stream itself" so if the component is also removed from my repo workspace, it cannot be restored from a snapshot?
Yes, it can be restore from a snapshot:
I could:
create a new workspace from the snapshot,
update my flowtarget to be this newly created repo and accept the component from here.
Then update the flow target to be stream where component was removed and
deliver the component to stream.
I confirm this should work.
And you can indeed create a repo workspace from a snapshot: that is what enable a user to quickly debug a Build Record with a "failed build" status: each build first put a snapshot on the cond on which they will operate.
If deleted from the Stream itself, you can add it back at the Stream level (Open that stream, and in the "Component" section, click on "Add" either from a baseline or snapshot, you can search for it if you remember the full or partial component name). Save the stream finally.
Related
Usually when I make a change in a source code file the server automatically updates. Though occasionally it does not, even if I reload the page, or even close the tab and load fresh from a new blank browser tab. I have to restart the server to finally see the change. I found this out upon changing a console.log message.
Is there a way to ensure that the server is using all of the latest source files without having to restart the server? (ya as I already mentioned usually it does this automatically, but at times it does not.)
I have a XBAP application that I want it to check for updates each time before it runs. But for some reason Install Mode and Settings section and Updates button are disabled there.
By default its set to available online only so I thought it always checks for updates in this state but that's not the case. When I change the published package in inetpub and then run the application again, it still runs the previous, cached one and it doesn't open the updated version until I remove the app from the cache with mage.exe. So I thought that I should do some configuration in Updates section.
I'm open to any kind of suggestions that helps me to figure out how to check for updates for this XBAP application each time right before it runs.
Here's how it looks line in Publish section:
I have created a view in ClearCase in which I have worked for sometime and then I was getting some issues in checkin and checkout afterwards so I have deleted that view and created new one which is working fine.
But now sudden I got to know that there are some files added to the source control which are reflecting and not required.
Issue: I went to clear team Navigator -> In sub stream Activities.
There I can see the activity that I committed.
On right click on activity, I can see only options: Remove Activity, Check in (which I cannot do), Disconnect, Show change set, refresh, remove properties.
Now when I trying to remove that activity it is giving an error:
CRMAP7009 : CCRC Command "RemoveResource" failed
I cannot share screenshots because it is restricted.
Does anyone having idea, how can I remove the activity?
It looks like you still have checked out files, but in a view that has been since deleted.
See if an admin can make sure your view is fully unregistered and remove for all vobs, which would make those files not checked out anymore.
See "Manually remove Web views for CCRC and CCWeb" (CC 7.x but could apply to 8 or 9), which involves:
cleartool rmview -uuid <uuid> -all
cleartool unregister -view -uuid <uuid>
Once those files are not checked out anymore, the activity will be empty, and you will be able to delete it.
The OP AIM confirms below:
we did not able to clear view from my end.
So admin went to the server and clear the views and the left checkouts and that helped
The way an admin would have clean this view on the server side is by running those same commands I mention above.
I have a view with CCRC.
I want to update the vob from the repository, but it is not showing the option to update it from repository at view level. It is showing it at vob level.
Otherwise, other views are showing options of updating the vob from repository.
Updating an (CCRC web) ClearCase view is only possible if:
you are connected to the ClearCase server that supports it, and
you must create at least one load rule for the view.
So check the config spec associated to the view where this optio is not available.
On my clear case integration view there is an option 'Synchronize with stream' which is sometimes enabled and sometimes disabled. What governs if this is enabled or disabled? Also it seems when i click this, it just updates the integration view. So why we need a separate function like 'Synchronize with stream' when we can just update the integration view?
That button is only active when the configuration of your view (ie the list of baselines listed by your config spec) isn't the same than the configuration of your stream.
The fact that is also update the view is only a side-effect of your view being a snapshot one.
For a snapshot view (ie a view on your disk):
updating only the view will update the content based only on the config spec of said view (unchanged)
synchronizing the view with the stream will trigger an update which will be based on the updated config spec of the view (ie the config spec of the view rewritten automaticaly for you, after reading the configuration of the associated Stream)
The fact that it updates your "integration view" is just because your view happens to be associated with the Integration Stream.
But as my previous answer on "Integration stream vs integration view in ClearCase" shows, there can be many other views (associated to many other sub-streams, also called "Development Streams").
Note: the cleartool command actually behind that button is:
cleartool -tag view setcs -stream.
If you execute it at the root directory of a snapshot view:
cleartool setcs -stream
It will trigger the update (after updating the config spec)