How do you get all files of a VOB as of a given date in a clearcase vob?


I have a fairly large codebase with several directories and files and I would like to check out a view or have a view as of a given date (Septermber 12th). I am manually checking file histories and doing ct get -to someOtherDir/FileName FilenName@@/main/## and this is extremely painful. I wonder if there is a way to do a checkout and load everything as of a particular day at once?


The easiest way is to make a separate dynamic view, with a config spec including a <strong>time-based selection rule</strong> (or time rule for short, see <a href="http://publib.boulder.ibm.com/infocenter/cchelp/v7r0m0/index.jsp?topic=/com.ibm.rational.clearcase.cc_ref.doc/topics/config_spec.htm" rel="nofollow">cleartool man config_spec</a>).

See as an example "<a href="https://stackoverflow.com/questions/634509/clearcase-loading-older-version-of-a-specific-directory/635282#635282" rel="nofollow">ClearCase : Loading Older Version of a specific Directory?</a>".

Since you want to checkout files, you need to complete your selection rule by a mkbranch directive.

element * .../aBranch/LATEST element /aVob/myComponent/mySubDirectory/... .../aParentBranch/LATEST -time dd-Month-yyyy -mkbranch aBranch element * /main/LATEST

If those elements were all created on 'aParentBranch', they will be selected at the right date, and branched into a new branch 'aBranch' when checked out.

If those elements were all on /main, you can switch the last two selection rules into:

element * /main/LATEST -time dd-Month-yyyy -mkbranch aBranch

From the <a href="http://publib.boulder.ibm.com/infocenter/cchelp/v7r0m0/index.jsp?topic=/com.ibm.rational.clearcase.cc_ref.doc/topics/config_spec.htm" rel="nofollow">man page</a>:

-time date-time <blockquote>

Modifies the meaning of the special version label LATEST:<br /> the rule selects from a branch the last version that was created <em>before</em> a particular time.



  • dynamic and snapshot views in clearcase
  • How to get a previous version in clearcase?
  • How to apply baseline only to a particular component?
  • Testing compatibility for javascript 1.2
  • Join 2 tables on dynamically changing column
  • How to iterate over all strings, of all modules, and of all languages?
  • ClearCase checking in and out using c#
  • What is the simplest way to mix Java+Scala in an Android project using Gradle?
  • jaxb xsd prefix package names
  • Why does checkout sometimes stage a file?
  • UIimage to char* conversion
  • Easiest way to covert part of a byte array to uint16
  • Disable add to cart redirection
  • c# web browser click on a button with a class name
  • jqPlot date axis - bars drawn on wrong day?
  • MySql - get days remaining
  • Returning this from a constructor function in JS
  • How to set current CultureUI via XAML binding
  • text-align justify, cannot override
  • Is there any purpose for h2-h6 headings in HTML5?
  • What is the use of a session store?
  • How to get the date of next specified day of week
  • Why must we declare a variable name when adding a method to a struct in Golang?
  • How can I replace the server in Web Component Tester
  • C# program and C++ DLL compiled for 32-bit system crash on 64-bit system
  • Loading .coffee files via a view in Rails
  • Create DicomImage from scratch using Dcmtk
  • Get data from AJAX - How to
  • Adding a button at the bottom of a table view
  • Fetching methods from BroadcastReceiver to update UI
  • Finding past revisions of files in StarTeam w/ .NET SDK / C#
  • Does CUDA 5 support STL or THRUST inside the device code?
  • Invalid access key error using credentials redeemed from an amazon open id token
  • Circular dependency while pushing http interceptor
  • InvalidAuthenticityToken between subdomains when logging in with Rails app
  • Proper folder structure for lots of source files
  • UserPrincipal.Current returns apppool on IIS
  • Android Heatmap on canvas or ImageView
  • Conditional In-Line CSS for IE and Others?
  • How to load view controller without button in storyboard?