clearcase和标签发布中的vss有什么区别? [英] What is the difference between clearcase and vss in label a release?
问题描述
我们正在使用clearcase作为我们的SCM。我对clearcase没有太多经验。现在,我们将代码发布到生产中。我想标记我的代码,就像在先前项目中使用VSS一样。但是在透明情况下,标记并不像在VSS中那样容易。 clearcase要求在为VOB中的文件夹添加标签之前创建标签类型。我不了解创建标签类型的概念?
We are using clearcase as our SCM. I have not much experience with clearcase. Now we are about to release our code to production. I want to label my code as I have done using VSS in my previous projects. But in clearcase labeling is not as easy as in VSS. clearcase is asking to create a label type before label a folder in VOB. I don't understand the concept of creating label type? Any guidance on this will be highly appreciated.
推荐答案
-
lbtype是模板,
a lbtype is a template, a declaration.
标签是将放置在需要标记的每个版本上的实例。
a label is the instance that will be put on each versions needed to be labeled.
请参见
mklbtype
mklbtype
命令创建一个或多个具有指定名称的标签类型,以便将来在VOB中使用。
在VOB中创建标签类型后,可以使用mklabel
将该类型的标签附加到该VOB元素的版本上。The
mklbtype
command creates one or more label types with the specified names for future use within a VOB.
After creating a label type in a VOB, you can attach labels of that type to versions of that VOB's elements, usingmklabel
.您还可以在
lbtype
上附加约束:You also can attach a constraint on a
lbtype
:
默认情况下,新标签类型被限制为仅在一个版本上使用元素的整个版本树中的版本号。
这允许您忽略版本扩展路径名中的分支路径名部分(例如,foo.c @ @ / JOHN_TMP
)
一旦定义了
lbtype
,您可以申请(mklabel
)到任何文件或在当前视图中需要的一组文件。
这意味着您已将视图配置为在给定时间选择分支的LATEST
,您可以应用以下标签:
Once you have define a
lbtype
, you can apply (mklabel
) it to any file or group of files you want in your current view.
That means you have a view configured to select theLATEST
of a branch, and at a given time, you apply this label:cd /myView/myVob/myGroupOfFile cleartool mklabel -nc -r MY_LABEL-1.0 .
注意:
lbtype
的名称(并且此lbtype
中设置的标签完全由您决定。您可以设置标签FOO
,BAR
或任何其他名称。相反,您可以设置标签MY_LABEL-2.0
,然后然后设置标签MY_LABEL-1.2
(不明智,但是...)。Note: the name of the
lbtype
(and the labels set from thislbtype
) is entirely up to you. You can set a labelFOO
,BAR
or any other names. Conversely, you can set a labelMY_LABEL-2.0
, then set a labelMY_LABEL-1.2
(not wise, but...).如果您想查看以前的现有标签(例如
MY_LABEL-1.0
)所引用的确切版本, 您设置为查看此标签的另一个(动态)视图。
以下配置规范(配置规范,又称为版本的选择规则)将实现以下目的:If you want to see what exact versions are referenced by a previous existing label like
MY_LABEL-1.0
, you create another (dynamic) view that you set to see this label.
The following config spec ("configuration specifications", aka "selection rules" for versions) will achieve just that:element * MY_LABEL-1.0 element * /main/LATEST
第二个选择规则称为停止规则,因为它允许所有版本回退到该默认规则:如果没有版本(对于给定文件)标记为
MY_LABEL-1.0
,然后,它将始终停在/ main / LATEST
规则,以选择分支main
的LATEST
版本。The second selection rule is called "stop rule" because it allows for all versions to "fall back" to this default rule: if no version (for a given file) is labeled
MY_LABEL-1.0
, then it will always stop at the "/main/LATEST
" rule, to select theLATEST
version of the branchmain
.对于那些咨询视图(即仅用于查看文件版本的视图),我建议使用动态视图,以便快速访问那些固定版本。
如果现在要查看2.0标签,只需修改此视图的配置规范。或创建另一个视图,以便同时看到1.0(在第一个视图中)和2.0(在第二个新视图中)For those "consultation" view (i.e. "view that are only used to see versions of files"), I recommend dynamic view, for a quick access to those fixed versions. If you now want to see the 2.0 label, simply modify the config spec of this view. Or create another view, in order to see both 1.0 (in the first view) and 2.0 (in this second new view)
这篇关于clearcase和标签发布中的vss有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!