Get all versions from a specific time - ClearCase UCM

前端 未结 1 1264
隐瞒了意图╮
隐瞒了意图╮ 2020-12-11 11:06

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 str

相关标签:
1条回答
  • 2020-12-11 11:34

    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.

    0 讨论(0)
提交回复
热议问题