配置规格和加载规则的差异 [英] Config specs and Load rules difference

查看:45
本文介绍了配置规格和加载规则的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Clearcase中的配置规范和加载规则之间有什么区别?

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

它们都仅使用 cleartool editcs -tag命令进行编辑吗?

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

推荐答案

配置规范是以下内容的集合:

A config spec is a collection of:


  • 选择规则(用于选择正确的版本)

  • 加载规则(仅用于快照视图),用于将...选择的文件加载到工作区(快照视图)中

您可以使用 ct edcs 进行编辑(只是 ct edcs (如果您在ClearCase视图中的任何地方)。

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 /即使在Windows上也使用 /

不需要加载\myVob 加载/ myVob 也可以工作

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

b /使用它们结合清理选择规则:

a选择规则是最后一条规则(在加载规则之前),该选择什么都不做

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

由于其他选择规则放置在确实选择多个子目录的之前,因此最后一个选择规则仅表示: s以前没有选择过,请不要完全选择它。

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

快照视图的后果?

而不是写:

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

(因为只需要/ myVob中的特定目录),您可以这样写:

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

load /myVob

一个简单的加载规则:它不会加载未选择的内容。并且由于未选择 / myVob / c / myVob / d ,因此它们不会出现(甚至是空的)在快照视图内的磁盘上。

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.

这篇关于配置规格和加载规则的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆