配置标签的规范 [英] Config spec for applying a label
问题描述
如何使用配置规范将标签应用于分支的最新版本?
我们可以使用配置规范应用标签吗?
How to apply a label To the latest version of a branch Using config Spec?
Can we apply a label using the Config spec.
好吧,我已经使用Config规范创建了分支,但是我使用了apply label选项应用了标签。
但是我想通过给它来应用
Well I have created branches using the Config spec but I applied labels using the apply label option.
But i want to apply it by giving it in the config spec.
我们可以这样做吗?
我尝试过,但是没有用。谢谢您
I tried it but Its not working.Thank you in advance
element * CHECKEDOUT
element /test_ari/karthik/omna.txt .../karthik_9/LATEST/karthik_66
element * /main/LATEST
我要创建标签 karthik_66
在 karthik_9 / LATEST
上使用配置规范规则,但我该怎么做?
I want to create a label karthik_66
on karthik_9/LATEST
using config spec rules but how do i make it?
推荐答案
根据配置规范规则手册页,您可以在配置规范中使用标签选择一个版本,而不是一个标签。
所以不。
According to the config spec rules man page, you can use labels within a config spec to select a version, not to label one.
So "no".
当您创建/管理分支,您需要3条规则,而不是像您当前拥有的1条规则。
When you create/manage a branch, you need 3 rules, not 1 like yo currently have:
element * CHECKEDOUT
# 3 rules here:
element /test_ari/karthik/* .../karthik_9/LATEST
element /test_ari/karthik/* /main/LATEST -mkbranch karthik_9
element /main/0 .../karthik_9/LATEST
element * /main/LATEST
这将为/ test_ari / karthik中的任何文件(不仅仅是 omna.txt
)创建一个分支,以及任何新文件( / main / 0
选择规则)。
That would create a branch for any file (not just omna.txt
) inside /test_ari/karthik, as well for any new file (the /main/0
selection rule).
因为您查看的内容始终是指 ... / karthik_9 / LATEST
,然后您可以随时应用标签,将其设置在的
。 LATEST
上karthik_9
Since you view would always refers to .../karthik_9/LATEST
, you can then apply your label at any time, setting it on the LATEST
of karthik_9
.
这篇关于配置标签的规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!