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
How to Help Humanity
Why Economists Miss the Mark
Daylight Saving Time
Natural Log Proof
Subscribe to 
Main Menu
HOME
SAVE HUMANITY
(42)
HELP THE WORLD
(96)
IMPROVE GOVERNMENTS
(87)
PERSONAL DEVELOPMENT
(238)
COMPUTER HELP
(125)
ARCHIVE (all articles)
SEARCH THIS SITE
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@@
|
by Phil B.
|