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

clearcase - Config specs and Load rules difference

What is the difference between Config specs and Load rules in Clearcase?

Are both of them edited using "cleartool editcs -tag " command only?

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

A config spec is a collection of:

  • selection rules (for selection the right versions)
  • load rules (only for snapshot view) for loading into your "workspace" (the snapshot view) the files selected by... the selection rules just above!

You can edit both with ct edcs (just "ct edcs" if you are anywhere in a ClearCase view).

Of course, in a dynamic view, you will only edit selection rules, since there are no "load rules":
there is nothing to "load" on your disk, since the all point of dynamic view is network access to data (very quick, and dynamic as in "automatically refreshed" if the selection rule is on "LATEST" of a branch).


Simple tricks with load rules:

a/ Use "/" even on windows
No need of load myVob: load /myVob works too

b/ Use them in combination with "cleaning selection rules":
a selection rule is a rule at the end (before the loading rules) which selections nothing

 element /myVob/* -none

Since other selection rules placed before that one does select several sub-directories, that last selection rules only means: "if it is not previously selected before, do NOT select it at all".

Consequence for a snapshot view?

Instead of writing:

load /myVob/a
load /myVob/b/b1
load /myVob/b/b2
# do not load /myVob/c
# do not load /myVob/d
load /myVob/e

(because you only want specific directories within /myVob), you can just write:

load /myVob

One simple load rule: it won't load what is not selected. and since "/myVob/c" or "/myVob/d" are not selected, they will not appear (even empty) on the disk within your snapshot view.


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

...