在ClearCase中进行子分支? [英] Sub-branching in ClearCase?
问题描述
当我想在CC中使用分支时,通常会在配置规范中添加以下内容:
When I want to use a branch in CC, I usually put something like this in the config spec:
element * .../first_branch/LATEST
element * .../Main/LATEST -mkbranch first_branch
element * ../Main/LATEST
现在,我想创建一个分支,该分支是第一个分支的子分支。假设它叫做 second_branch
(我今天有创意)。该配置规格看起来如何?
Now, I want to create a branch that is a sub-branch of the first one. Let's say it's called second_branch
(I'm creative today). How would that config spec look like?
推荐答案
像这样:
element * .../second_branch/LATEST
element * .../first_branch/LATEST -mkbranch second_branch
element * .../Main/LATEST -mkbranch first_branch
element * ../Main/LATEST
您的视图现在将查看second_branch上的最新版本,或者不存在,则为first_branch上的最新版本,或者,如果不存在,则为主分支上的最新版本。签出文件后,将根据需要分别在second_branch和first_branch上创建一个新版本元素。
Your view will now look at the latest version on second_branch, or, if it doesn't exist, the latest version on first_branch, or, if it doesn't exist there, the latest version on the main branch. Upon checking out a file, a new version element will be created on respectively second_branch and first_branch as necessarily.
我现在无权访问ClearCase实例,因此我无法仔细检查您的最后两行,但我想也许您是这个意思?
I don't have access to a ClearCase instance right now, so I can't double check your last two lines, but I think that perhaps you meant this instead?
element * .../second_branch/LATEST
element * .../first_branch/LATEST -mkbranch second_branch
element * /Main/LATEST -mkbranch first_branch
这篇关于在ClearCase中进行子分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!