您如何获取给定日期的VOB的所有文件在透明的VOB中? [英] How do you get all files of a VOB as of a given date in a clearcase vob?
问题描述
我有一个相当大的代码库,其中包含几个目录和文件,我想签出一个视图或在给定日期(9月12日)之前具有一个视图。我正在手动检查文件历史记录并执行 ct get -to someOtherDir / FileName FilenName @@ / main / ##
,这非常痛苦。我想知道是否有一种方法可以结帐并立即加载特定日期的所有内容?
I have a fairly large codebase with several directories and files and I would like to check out a view or have a view as of a given date (Septermber 12th). I am manually checking file histories and doing ct get -to someOtherDir/FileName FilenName@@/main/##
and this is extremely painful. I wonder if there is a way to do a checkout and load everything as of a particular day at once?
推荐答案
最简单的方法是使用包含基于时间的选择规则(或简称为时间规则,请参见 cleartool man config_spec
)。
The easiest way is to make a separate dynamic view, with a config spec including a time-based selection rule (or time rule for short, see cleartool man config_spec
).
请参阅示例 ClearCase:加载特定目录的旧版本吗?。
由于要签出文件,因此需要通过 mkbranch
指令来完成选择规则。
Since you want to checkout files, you need to complete your selection rule by a mkbranch
directive.
element * .../aBranch/LATEST
element /aVob/myComponent/mySubDirectory/... .../aParentBranch/LATEST -time dd-Month-yyyy -mkbranch aBranch
element * /main/LATEST
如果这些元素都是在' aParentBranch
'上创建的,则会在正确的日期选择它们,并分支到新的分支'
If those elements were all created on 'aParentBranch
', they will be selected at the right date, and branched into a new branch 'aBranch
' when checked out.
如果这些元素全部位于 / main
上,您可以将最后两个选择规则切换为:
If those elements were all on /main
, you can switch the last two selection rules into:
element * /main/LATEST -time dd-Month-yyyy -mkbranch aBranch
来自手册页:
-time date-time
修改特殊版本标签
L的含义ATEST
:
规则从分支中选择在特定时间之前创建的最后一个版本。
Modifies the meaning of the special version label
LATEST
:
the rule selects from a branch the last version that was created before a particular time.
这篇关于您如何获取给定日期的VOB的所有文件在透明的VOB中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!