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.