2

I'm new at ClearCase and one of the file's master is not me. So, I can make check-out but cannot make check-in.

I was expecting that if I'm not master I cannot check-out even. It should be read only for me.

If I can check-out but unable to check-in it confuse me.

Can you please describe the difference between master and current replica and how can I reach to master replica.

0

1 Answer 1

1

See cleartool checkout man page

If the VOB that contains the element is replicated, and synchronous request for mastership (SRFM) is not enabled, then the checkout command fails if you try to check out a branch mastered by a remote replica.

cleartool checkout –nc file1.txt
cleartool: Error: Unable to perform operation "checkout" in replica
"lexington" of VOB "/vobs/dev".
cleartool: Error: Master replica of branch "/main" is "london".
cleartool: Error: Unable to check out "file1.txt".

In this case, if you need to work on a branch mastered by another replica, you can

  • Request mastership of the branch and wait until the mastership is transferred to your local replica before you check out the branch.
  • Check out the branch and do your work while waiting for mastership to be transferred.
    You can request mastership before or after checking out the branch. To check out the branch, use checkout –unreserved –nmaster, which performs a nonmastered checkout.
    When the mastership of the branch is transferred to your current replica, you may have to perform a merge before checking in your work. Therefore, do not use this option if you cannot merge versions of the element (for example, if the versions are in binary format).

So if you can checkout, maybe you did checkout the branch first.
See more at "About sharing control of a branch with developers at other sites".

2
  • Ok, I made unreserved check-out. So, it explains how I was able to do it. But still how can I ask for mastership change. Because I don't know who has the mastership. Oct 19, 2017 at 16:28
  • 1
    @FurkanYavuz www-01.ibm.com/support/docview.wss?uid=swg21289563 You can find the Master Replica Name using the following command: cleartool describe -fmt "%[master]p %n"
    – VonC
    Oct 19, 2017 at 20:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.