I would like to get contents of some stream or project I can find in clearcase project explorer.
Asked
Active
Viewed 4,892 times
1
-
2Cue VonC, the Jon Skeet of ClearCase, in 5...4...3... – Thomas Owens Sep 02 '09 at 13:16
-
a stream or a project references baselines and activities. In the project explorer, you will not get any files. Only baselines and activities within each streams. – VonC Sep 02 '09 at 13:26
-
Ok, how can I then get the files referenced by the stream or project? – JtR Sep 02 '09 at 13:31
-
Just added UCM dynamic view option. Could you try to illustrate exactly the kind of content you need to see? – VonC Sep 02 '09 at 13:31
-
I tried ClearCase for the first time and I can find some projects with the project explorer. I want to have the latest versions of files and directories on my harddrive. – JtR Sep 02 '09 at 13:34
-
I confirm: this is a UCM view that you need st.art with a dynmic UCM view: quickest way to access those data. – VonC Sep 02 '09 at 13:35
-
There's a very slow connection to the place where the server lies. How can I do a snapshot view to the same place? – JtR Sep 02 '09 at 13:44
-
Just added snapshot view informations. – VonC Sep 02 '09 at 13:48
-
the load rules does not deal with stream/project, only vobs and directories. A load rule only need to specify the vob you want to load, whatever the selection rules (based on the stream) are. – VonC Sep 02 '09 at 14:16
-
Do not hesitate to add in your question error messages you could have when typing a command. I will debug those. – VonC Sep 02 '09 at 14:17
1 Answers
3
2... 1
cleartool descr -l project:myProject@\myPVob
with some grep, you have the list of components (writable or not) and policies.
If you want only the Streams:
cleartool lsproj -tree myProject@\myPVob
You can repeat that for a Stream (to get the sub-streams)
cleartool lsstream -tree myStream@\myPVob
For the foundation baselines of a Stream:
cleartool descr -fmt "%[mod_comps]CXp" stream:myStream@\ideapvob
For the activities of a Stream:
cleartool descr -fmt "%[activities]CXp" stream:myStream@\ideapvob
If you want to consult the files (i.e. the exact version of each files) referenced by a stream, the quickest way would be to create a UCM dynamic view on that stream:
cleartool mkview -tag myView_myStream -stream myStream@\myPVob -stg myStorage
With a dynmic view, you will not have any load rule (since it is a dynamic view).
You only need to mount the VOB which you want to see
cleartool mount \myVob
And you can start browsing the files
M:\myView_myStream\myVob\...
For snapshot view, see "Proper ‘cleartool mkview’ for ClearCase Snapshot view creation"
mkview -snapshot -tag myView_myStream_snap -vws \\mySharedPath\myView_myStream_snap.vws -host myHostname -hpath \\mySharedPath\myView_myStream_snap.vws -gpath \\mySharedPath\myView_myStream_snap.vws myRootDir
For the load rules, see:
-
I meant with contents that how do I get the files of the stream or project? – JtR Sep 02 '09 at 13:24
-
I can get empty directory with mkview command. What should I specify in load rules? – JtR Sep 02 '09 at 13:39
-
How can I make a snapshot view of the same thing? The connection is so slow that I can't use dynamic view. – JtR Sep 02 '09 at 13:47
-
I can't find any information on how to specify stream/project information in the load rules. I tried with stream:sdlkfj project:sdf \VOB\Project etc. – JtR Sep 02 '09 at 13:54
-
I'll just make a new question about that. Thank you very much for your patience VonC :D – JtR Sep 02 '09 at 14:16