Posted By

noah on 12/14/07


Tagged

commandline vc CC commands work clearcase cleartool ct


Versions (?)

ClearCase commands


 / Published in: Other
 

URL: https://www.onconfluence.com/display/ilab/Adding+large+numbers+of+directories+and+files+to+ClearCase

Here is a list of commands that work with Rational Software's ClearTool for Rational ClearCase version control system.

  1. # Add a new element to ClearCase without getting a stupid error because the current working directory isn't checked out.
  2. ct mkelem –mkp -c "frobnitz" file.txt
  3.  
  4. # recursively import new_dir into the vob as vob_dir, then label everything in the new vob_dir
  5. clearfsimport -r -nsetevent -comment "Omg h4x!" new_dir vob_dir
  6. ct mklabel -r -rep MY_LABEL vobdir
  7.  
  8. # get the changes since Monday for files that have been updated in the last 3 days
  9. find -atime -3 | xargs ct.bat lshistory -sin Mon -fmt "%u: %Nc (%e %En, %Vd)\n"
  10.  
  11. # recursive history for the last 3 days
  12. find -atime -3 | ct.bat lshistory -fmt "%c"
  13.  
  14. # show changes made to a directory since 12am today. The -l option forces comments to print.
  15. ct lshistory -r -l -sin 00:00:00
  16.  
  17. # shows when the label was changed on a directory
  18. ct lshistory -d -min directoryname
  19.  
  20. # Recursively import the directory new_dir into a vob_dir(ectory)
  21. clearfsimport -r -nsetevent new_dir vob_dir
  22.  
  23. # Recursively apply a label a directory and all its contents. Omit -r to just label the directory.
  24. ct mklabel -r -rep THE_LABEL directoryname

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: lekshmi_r05 on February 28, 2008

ct desc

You need to login to post a comment.