Skip to content

Instantly share code, notes, and snippets.

@mindjiver
Created March 29, 2012 18:26
Show Gist options
  • Select an option

  • Save mindjiver/2241594 to your computer and use it in GitHub Desktop.

Select an option

Save mindjiver/2241594 to your computer and use it in GitHub Desktop.
ClearCase life saver commands.
# search for a label in the current VOB.
cleartool find -all -ver "lbtype(!*)" -print
# search for a branch in the current VOB.
cleartool find -all -ver "brtype(!*)" -print
# show all checkedout files in current VOB.
cleartool lsco -all -cview
# checkin all checkedout files.
cleartool lsco -all -cview -short | xargs cleartool ci -nc
# diff all checkedout files against "HEAD" [checkedout parent] in serial format.
cleartool lsco -cview -all -short | xargs -n1 cleartool diff -pred -serial
# Merge to current branch all files from branch topic42, automerge everything but
# show graphical merge tool if we fail
cleartool findmerge . -fver .../topic42/LATEST -merge -gmerge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment