Phil for Humanity

A Guide for the Survival of Humankind, and Improving the World, Society, and Yourself!


Popular Articles
  • Reasons For and Against
    Human Cloning
  • Globalization of the USA
  • The Pros and Cons of
    Capital Punishment
  • World's Stupidest Game

  • Latest Articles

  • Pessimism versus Realism
  • The Pros and Cons of Negativity
  • Demote Managers
  • Grow Plateau and Go
  • Subscribe to RSS Feed

  • Main Menu

  • HOME
  • SAVE HUMANITY (34)
  • HELP THE WORLD (82)
  • IMPROVE GOVERNMENTS (68)
  • PERSONAL DEVELOPMENT (172)
  • COMPUTER HELP (37)
  • ARCHIVE (all articles)
  • CONTACT US
  • DISCLAIMER
  • PLEASE HELP: DONATE

  • ClearCase Support: Finding Branches on Version Trees


    I am often asked how to find a certain branch from the command line. The command is something like this:

    cleartool find . -all -ver 'brtype(BRANCH_NAME)' -print

    This command will display each version that has this branch and start recursively searching in the current directory or ".", or you can specify only one element like this example:

    $ cleartool find /vob/test/a/ -all -ver 'brtype(TEST_BRANCH)' -print
    /vob/test/a/b.txt@@/main/TEST_BRANCH/0
    /vob/test/a/b.txt@@/main/TEST_BRANCH/1
    /vob/test/a/b.txt@@/main/TEST_BRANCH/2
    /vob/test/a/cc.pdf@@/main/TEST_BRANCH/0
    /vob/test/a/cc.pdf@@/main/TEST_BRANCH/1

    However if you only wanted to find elements with a branch without listing each version on the branch, then you can run:

    $ cleartool find /vob/test/a/ -all -element 'brtype(TEST_BRANCH)' -print
    /vob/test/a/b.txt@@
    /vob/test/a/cc.pdf@@

    If you have any other ClearCase questions, please do not hestitate to contact me for free advice.

    by Phil B.

    Related Articles
     » ClearCase Support: Finding Labeled Versions
     » ClearCase Support: Displaying Comments
     » ClearCase Support: How to Make a ClearCase Branch







    Copyright © 2006-2008, Phil for Humanity. All Rights Reserved.