Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
175 views
in Technique[技术] by (71.8m points)

How do I create a snapshot view of some project or stream in ClearCase?

I would like to get contents of some stream or project I can find in clearcase project explorer.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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_myStreammyVob...

For snapshot view, see "Proper ‘cleartool mkview’ for ClearCase Snapshot view creation"

 mkview -snapshot -tag myView_myStream_snap -vws \mySharedPathmyView_myStream_snap.vws -host myHostname -hpath \mySharedPathmyView_myStream_snap.vws -gpath \mySharedPathmyView_myStream_snap.vws myRootDir

For the load rules, see:

Config specs and Load rules difference


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...