Get all versions from a specific time - ClearCase UCM

拥有回忆 提交于 2019-11-28 12:52:00
VonC

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!