How to see eclipsed files on ClearTeam Explorer? - clearcase

I have an eclipsed file in my ClearCase dynamic view.
If I use ClearCase Explorer, I see it's eclipsed (the yellow moon icon).
If I check the command-line, I see it's eclipsed indeed.
When I use ClearTeam Explorer, it does not specify it's eclipsed (no text, icon or something like that). Since I tend to use the new explorer, I'm wondering how it should work on this situation?

It can depend on your ClearTeam version (release notes for 8.0), since
CM API support for dynamic views
The ClearCase CM API now supports dynamic views. For detailed information on API changes, refer to Technote 1566574.
Other than that, not of the ClearCase fixes reports any issue for eclipsed files.

Related

How do I remove a clearcase merge arrow in Clearteam Explorer?

Removing merge arrows and versions of files is straightforward using the ClearCase CLI. However, I only can manipulate our UCM via the Eclipse Clearteam Plugin and I do not have access to the command line.
Right now the version tree in the area I want to manipulate looks like this:
For reference, here is the toolbar that I have at the ready. The help menu only described how to make merges, not cancel them:
How do I remove a merge through the Clearteam application shown?
There is not much option that doing the equivalent of a cleartool rmver of the target version of the merge arrow. (right-click on the target version, and select delete)
And that would even not be enough, as ClearCase should refuse the rmver, considering the version is reference by the merge hlink, or part of other UCM metadata (baselines, stream, ...)
If that is the case, then the GUI alone would not be enough, as opposed to the CLI rmver -xhlink.
You might consider adding a custom action menu to your ClearTeam Explorer in order to try and replicate the rmver -xhlink using the CM API (libraries and documentation are an option when you install ClearCase), but I don't know if said library can go that far.
If you're using web views and can only work in the GUI, there isn't a way to remove any type of hyperlink.
Nor does the rcleartool command support the rmhlink command. rcleartool doesn't allow rmver either. All you can do is remove the version.

Could i make a custom function in Clearcase's Toolbox ?

I want to make a new icon and a fuction for clearcase, i want to activate and deactivate the element * MAIN/LATEST function without to change manually the config spec.
I would like to have also the icon on my toolbox so i could know every time if MAIN/LATEST is active. My question is if someone could manipulate the clearcase's Toolbox. I was searching in google without to find out an answer!
The usual customization I see is through the ClearCase Context Menu Editor for Windows Explorer.
That would apply for Windows client only, and for ClearCase 7.x, not ClearTeam Explorer 8 though:
The tool that allows you to change the behavior of existing dialog boxes in Windows and ClearCase Explorer is ClearCase Context Menu Editor (tool called clearmenuadmin typical found in C:\Program Files\Rational\ClearCase\bin\clearmenuadmin.exe) which is available on all ClearCase Windows installations.
With the Context Menu Editor it is possible to:
Create new commands and other menu items available to ClearCase context menus.
Change properties of built-in and custom ClearCase context menu items.
Add items to or remove items from ClearCase context menus.
Test the changes to ClearCase context menus.
It would be good to know why you want to "disable /main/LATEST" and how you plan on doing that. Completely removing the line may cause problems if you need to create new elements, for example.
Whatever script that you're planning on using would need to:
Grab the current view configspec using cleartool getcs
Edit it to make the desired changes
use cleartool setcs {filename} to apply the changes
Some key "gotchas".
Removing /main/LATEST completely will break mkelem, unless have a "element * /main/0 -mkbranch {some branch}" rule.
If you use "-time now" to prevent seeing stuff on /main that others may still be checking in, that will work up to a point. This "now" means "when the configspec is recompiled" which can happen: on starting the view server process or if "cleartool setcs -current" is used to clear view caches.
Not having a configspec line for /main is intentionally introducing "no version selected by configuration" errors. As is using "element ... -none" rules. If you use snapshot or snapshot-derived view types (Web views, and likely Automatic views), you may see error messages on updating/loading views. You can ignore these messages, but only if you're aware they will happen. If you're doing automated updates (say as part of a build process) that tooling needs to be set up to ignore the "spurious" errors and catch the "real" ones.

can't change view tag or stream name in clearcase explorer in linux

I am not been able to change any parameters in clearcase GUI? Any suggestions how to fix it.
I want to give the view tag and stream name as I wanted but it is not allowing me to write or change anything in clearcase explorer.
A ClearCase Explorer is for the view, files and directories.
You cannot change the name of a view, through GUI.
You could follow the process describe in this IBM technote (rmtag, unregister, moving the view storage, register, mktag...).
But frankly, you would be better off creating a new one (with the same config spec, which means, for an UCM view, create a new UCM view referring to the same Stream)
A ClearCase Project Explorer is for all UCM metadata: pvobs, projects, streams, activity.
You cannot change an UCM name through the GUI (at least in 7.x, the ClearTeam 8.x interface could be more helpful).
But you can rename a stream easily enough through cleartool rename stream:aStream#\aPVob nameName.
However, I would then recommend to build a new view pointing on the new Stream (instead of resetting the config spec, with a cd /path/to/your/view; cleartool chstream --generate)

Browsing projects without creating views in ClearTeam Explorer for Rational ClearCase

My company has recently switched from using Perforce to Rational ClearCase for version control.
In the P4Win client it was possible to select View -> Entire Depot and browse depot files that were outside my client spec and this was useful for figuring out exactly what I needed to add to my client spec.
Significantly this avoided the need to synch the files from the depot before viewing them, and was therefore quicker.
I'm now using ClearTeam Explorer and can't seem to find an equivalent. I'd like to have this for a similar purpose, to figure out exactly what I need in the load rules for my snapshot view and also to decide what views I need to create.
Does anyone know if it is possible to view what files exist under a project in ClearTeam Explorer without first creating a view on the project / joining it?
ClearTeam Explorer is basically a trimmed down Eclipse with ClearCase specific plugins.
thanks.
The easiest way would be to create a dynamic view (you need to add -stream yourStream#\yourPvob to the mkview command, I know it looks like you "joining a project", but still, dynamic view are quick to setup).
The idea is to configure your config spec with the right selection rules (a dynamic view will display the files instantly), and then make your snapshot view with those same selection rules (and the appropriate load rules, specific to a snapshot view)
Note that, according to the CCRC wiki:
With the Release of v8.0, the ClearTeam Explorer is the common Eclipse UI client that supports MVFS on native clients, as well as webviews.
CM Server in 7.1.x was renamed to CCRC Wan Server in v8.
If you don't have cleartool installed, that means you are using webviews (which are snapshot views with web access to the CCRC Wan server).
In that case, there is no easy way to browse any code from any Baseline (other than joining a project)
FWIW now, wanted to suggest a different solution here.
I would create a web view on the stream with empty load rule.
This will ensure a faster view creation.
Then from ClearTeam Navigator menu, I will enable the options to show
Unloaded VOBs
Unloaded Elements
This will ensure that the unloaded elements chosen from my element rules are displayed in ClearTeam Details and ClearTeam Navigator.
Note: You need to be connected to the CCRC server to view the unloaded elements.
Then I can browse the file structure and decide which files needs to be added to my view's load rule.
Or I can just right click on any unloaded/partially loaded resource and select "Load Resource..." which will load the item to my view.

Newly created view not visible in ClearCase explorer: how can I see it?

I created a view using the ClearCase explorer.
But after its creation, the view is not visible in the listing of views within the explorer.
I tried closing the explorer and starting again. But no use...
What would you suggest?
I would recommend the following procedure:
open a DOS windows
goes to the root of your view ( c:\path\to\myView for snapshot views, M:\MyView for dynamic view)
type 'clearexplorer . (note the 'space-dot' after the clearexplorer command)
That should:
open your ClearCase explorer directly on the right view
add the right view shortcut
Sometimes ALBD service of the ClearCase doesnot start due to which you will not be able to view the clearcase views.
To solve this problem,
Go to control panel for windows machine and restart the clearcase services in ClearCase properties and try and check.
The views will be shown now.
my issue was resolved with going to the menu of ClearCase Explorer:
View > Refresh View Shortcuts (shortcut is ALT+F5)
None of the below seemed to work, I tried them all, they all seemed reasonable. I could see the new views and the associated drive letters in Windows Explorer but ClearCase Explorer DID NOT see the new view. So what I had to do was go to the ClearCase Explorer Views tab, right click and 'Add View Shortcut'. Select the correct View Type (Snapshot or Dynamic) and then select the correct View Tag and press OK. I did not need to select the correct page, it made a new one for the "new" view and it filled in the Drive Letter.
I had deleted a view thru ClearCase Explorer and tried to resurrect it which may of led me to this predicament.

Resources