I know that we can transfer mastership of an object like this example:
At replica sanfran_hub, transfer mastership of element list.c to the sydney replica.
multitool chmaster sydney list.c@@/main
Changed mastership of ″list.c″ to ″sydney″
However, I do not know how to transfer mastership of all files in a directory. Example:
sydney/
sydney list1.c
sydney list2.c
sydney list3.c
...
If I run
multitool chmaster sydney sydney@@/main
It only change mastership of the directory "sydney", not all the files inside it.
I don't believe there is a recursive option for chmaster
.
That means you need to link this command to the result of a cleartool find
query.
(Windows syntax)
cleartool find sydney -exec "multitool chmaster sydney \"%CLEARCASE_PN%@@/main\""
(Unix syntax)
cleartool find sydney -exec 'multitool chmaster sydney "$CLEARCASE_PN@@/main"'