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
425 views
in Technique[技术] by (71.8m points)

clearcase - Synchronize with stream clear case integration view

On my clear case integration view there is an option 'Synchronize with stream' which is sometimes enabled and sometimes disabled. What governs if this is enabled or disabled? Also it seems when i click this, it just updates the integration view. So why we need a separate function like 'Synchronize with stream' when we can just update the integration view?

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

That button is only active when the configuration of your view (ie the list of baselines listed by your config spec) isn't the same than the configuration of your stream.

The fact that is also update the view is only a side-effect of your view being a snapshot one.
For a snapshot view (ie a view on your disk):

  • updating only the view will update the content based only on the config spec of said view (unchanged)
  • synchronizing the view with the stream will trigger an update which will be based on the updated config spec of the view (ie the config spec of the view rewritten automaticaly for you, after reading the configuration of the associated Stream)

The fact that it updates your "integration view" is just because your view happens to be associated with the Integration Stream.
But as my previous answer on "Integration stream vs integration view in ClearCase" shows, there can be many other views (associated to many other sub-streams, also called "Development Streams").

Note: the cleartool command actually behind that button is:

cleartool -tag view setcs -stream.

If you execute it at the root directory of a snapshot view:

cleartool setcs -stream

It will trigger the update (after updating the config spec)


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

...