I would like to get contents of some stream or project I can find in clearcase project explorer.
+2
A:
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:
VonC
2009-09-02 13:19:44
I meant with contents that how do I get the files of the stream or project?
JtR
2009-09-02 13:24:09
I can get empty directory with mkview command. What should I specify in load rules?
JtR
2009-09-02 13:39:34
How can I make a snapshot view of the same thing? The connection is so slow that I can't use dynamic view.
JtR
2009-09-02 13:47:10
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
2009-09-02 13:54:38
I'll just make a new question about that. Thank you very much for your patience VonC :D
JtR
2009-09-02 14:16:28