We are developing a tool using c# for purpose of code reviews. We are using clearcase as source control.
I am using "cleartool" object to perform any operations interacting with clear case
{ex of ClearCase operations: getting list of labels present, files attached with given label etc...}
The requirement before using cleartool is that i have to change my working directory to appropriate VOB directory.
Say for example I have "exampleView" and "exampleVOB" on network drive "U". So in my code
- step 1. Change my working directory to VOB directory "
cd U:\exampleView\exampleVOB" - step 2. interact with clear case using cleartool commands.
Problem :
So now from my tool design is
- I have 2 combobox one for views and other for VOBs.
- User selects appropriate View and VOB.
- Through code get clear case network drive using registry entry "
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Mvfs\Parameters\basedrive" - I form path as "
basedrive:\viewcomboboxselection\vobcomboboxselectedvalue"
So now i wanted to know is there any way to get list of VIEWS and VOBS in a given system.
My findings so far :
- Registry entry "
HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Atria\ClearCase\CurrentVersion\RecentlyUsedViews" will give me only selected views but not all views in a system. - Registry entry "
HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Atria\ClearCase\CurrentVersion\PersistentVOBs" will not give me all VOBs in a given system.
Is there any registry entries or any way to get list of all views and vobs in a system.