ClearCase:主副本和当前副本之间有什么区别?

ClearCase: What is the difference between master and current replica?

我是 ClearCase 的新手,文件的主人之一不是我。 所以,我可以退房,但不能入住。

我还以为我不是master连check out都没有。它应该只供我阅读。

如果我可以退房但不能入住,我会很困惑。

能否请您描述一下主副本和当前副本之间的区别以及我如何才能到达主副本。

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).

所以如果你可以结账,也许你先结账了分行。
在“About sharing control of a branch with developers at other sites”查看更多信息。