How Do I Edit a ClearCase Dynamic View Config Spec to Select Versions as of a Specific Build Date?

Hey everyone,

I’m trying to configure my ClearCase dynamic view so that it only selects versions as they existed at a specific build date. I want to ensure that my view reflects the exact state of the repository at that point in time.

How can I modify my config spec to achieve this? Any help would be appreciated!

You can use the -time rule in your config spec to achieve this. Here’s an example of how you can structure it:

element * CHECKEDOUT  
element * /main/LATEST -time "31-Jan-2025 12:00:00"  
element * /main/0  

The key part is -time "31-Jan-2025 12:00:00", which ensures that your view only includes the versions that existed at that exact time.

That worked great.

Quick follow-up, how can I extend this to include feature branches that come off the main branch while still sticking to a specific build date?

To include feature branches that originate from the main branch, you need to reference those branches explicitly while maintaining the -time restriction. Here’s how you can modify your config spec:

element * CHECKEDOUT  
element * /main/LATEST -time "31-Jan-2025 12:00:00"  
element * /main/feature_branch/LATEST -time "31-Jan-2025 12:00:00"  
element * /main/0  

This setup ensures that you’re pulling in versions from both main and the feature_branch as they existed at the specified timestamp. If you have multiple feature branches off main, just duplicate the third line for each branch.