Posted By

noah on 12/14/07


commandline vc CC commands work clearcase cleartool ct

Versions (?)

ClearCase commands

 / Published in: Other


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
  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
  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"
  11. # recursive history for the last 3 days
  12. find -atime -3 | ct.bat lshistory -fmt "%c"
  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
  17. # shows when the label was changed on a directory
  18. ct lshistory -d -min directoryname
  20. # Recursively import the directory new_dir into a vob_dir(ectory)
  21. clearfsimport -r -nsetevent new_dir vob_dir
  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  


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

ct desc

You need to login to post a comment.