标签发布中的clearcase和vss有什么区别?
我们使用 Clearcase 作为我们的 SCM。我对clearcase 没有太多经验。现在我们即将将代码发布到生产环境。我想像在之前的项目中使用 VSS 一样标记我的代码。但在 Clearcase 中标记并不像在 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
lbtype 是一个模板,一个声明。
标签是将放置在每个需要标记的版本上的实例。
请参阅
mklbtype
您还可以在 lbtype 上附加约束:
定义
lbtype
后,您可以申请(mklabel
) 将其添加到您想要在当前视图中显示的任何文件或文件组。这意味着您有一个配置为选择分支的
LATEST
的视图,并且在给定时间,您应用此标签:注意:
lbtype
的名称(以及从此lbtype
设置的标签)完全取决于您。您可以设置标签FOO
、BAR
或任何其他名称。相反,您可以设置标签MY_LABEL-2.0
,然后设置标签MY_LABEL-1.2
(这不是明智之举,但是......)。如果您想查看之前的现有标签(例如
MY_LABEL-1.0
)引用了哪些确切版本,您可以创建另一个(动态)视图,并设置它来查看此标签。< br>以下配置规范(“配置规范”,又名版本的“选择规则”)将实现这一点:
第二个选择规则称为“停止规则”,因为它允许所有版本“回退”到此默认规则:如果没有版本(对于给定文件)标记为
MY_LABEL-1.0
,那么它将始终停止在“/main/LATEST
”规则,选择分支main
的LATEST
版本。对于那些“咨询”视图(即“仅用于查看文件版本的视图”),我推荐动态视图,以便快速访问那些固定版本。
如果您现在想查看 2.0 标签,只需修改此视图的配置规范即可。或者创建另一个视图,以便同时查看 1.0(在第一个视图中)和 2.0(在第二个新视图中)
a lbtype is a template, a declaration.
a label is the instance that will be put on each versions needed to be labeled.
See
mklbtype
You also can attach a constraint on a
lbtype
: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 the
LATEST
of a branch, and at a given time, you apply this label: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...).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:
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
.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)