获取特定时间的所有版本-ClearCase UCM [英] Get all versions from a specific time - ClearCase UCM
问题描述
我们正在使用ClearCase UCM,有人问我是否有办法从特定时间获取所有版本。
示例:工作正在完成在开发流中。有人破坏了构建,但是先前的基准太远了,我们将失去太多工作。他们希望获取上周四11:00 am开始存在的每个文件的版本。
是否有可能,即使在特定时间还没有基准?
有没有一种方法可以还原到该特定时间?
(我搜索了类似的主题,但其中大多数是此后创建的版本。 。)
created_since用于查找类似于 在Clearcase视图中查找的文件是否比特定日期新?。 p>
但是在您的情况下,使用特定的配置规范 基于时间的选择规则 :
element / myPath / ... ... / StreamName / {!created_since(2009年9月16日)}
元素/myPath/.../main/{!created_since(2009年9月16日)}
元素/ myPath / ... / main / LATEST
因此,这将是一个普通的基本ClearCase动态视图(测试是否符合配置规范:没有文件可以加载
事实上,这些文件当前由UCM组件中的UCM视图管理,这并不排除使用base-ClearCase视图。
想法是在正确的日期查找版本:
- 首先在
StreamName
分支(如果这些文件已签出) - 如果不是,则在
main
分支
从此处开始,如果要在当前UCM视图中还原到该内容,最简单的方法是使用 clearfsimport ( -rmname
以获得完全相同的内容)。
按顺序创建专用于该重新导入的UCM活动来注册所有受影响的文件。
We are using ClearCase UCM, and someone asked me if there is a way to get all of the versions from a specific time.
Example: Work is being done on a development stream. Someone broke the build, but the previous baseline is too far back and we would lose too much work. They would like to get the versions of every file that was there from last Thursday at 11:00am.
Is this possible, even if it hasn't been baselined at that specific time? Is there a way to revert back to that specific time?
(I searched for a similar topic, but most of them were "versions created since...")
The "created_since" is about find queries similar to "Find files in Clearcase view newer than a specific date?".
But in your case, it is easier to define a dynamic view, with a specific config spec time-based selection rule:
element /myPath/... .../StreamName/{!created_since(16-Sep-2009)}
element /myPath/... /main/{!created_since(16-Sep-2009)}
element /myPath/... /main/LATEST
So it would be a plain base-ClearCase dynamic view (easier to test when fiddling with the config spec: no files to load like in a snapshot view).
The fact that those files are currently managed by an UCM view in an UCM component doesn't preclude using base-ClearCase views.
The idea is to look for the versions at the right date:
- first in the
StreamName
branch (if those files have been checked-out) - if not, in
main
branch
From there, if you want to "revert" to that content in your current UCM view, the easiest way to to re-import everything with a clearfsimport (-rmname
to achieve the exact same content).
Create an UCM activity dedicated to that "re-import" in order to register all impacted files.
这篇关于获取特定时间的所有版本-ClearCase UCM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!