ClearCase:是否可以取消并非根据您自己的观点进行的结账?

发布于 2024-12-05 18:31:30 字数 45 浏览 0 评论 0原文

项目经理是否可以强制取消在任何视图/流/项目中进行的文件/目录的签出?如何?

Can the project manager force cancellation of checkouts of files/directories made in any view/stream/project? How?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

像极了他 2024-12-12 18:31:30

ClearCase 管理员可以强制将给定视图的所有文件视为“未签出”(这相当于取消其签出状态),使用 cleartool rmview

cleartool rmview -force -uuid (uuid_of_the_view) -vob \aVob

您可以通过在输出中 grep 用户来获取 uuid:

cleartool descr -l vob:\aVob

请参阅技术说明“从 VOB 中删除检出的视图引用"。
它适用于任何视图(快照或动态视图、基本 ClearCase 或 UCM 视图),

我建议将该命令限制为特定的 vob。
无论如何,这与项目经理无关,除非他/她也是 ClearCase 管理员(即,他/她与 Windows 上的 ClearCase 管理员组位于同一组,或者如果他/她是 Unix 上的 root

) <一href="http://publib.boulder.ibm.com/infocenter/cchelp/v7r0m0/index.jsp?topic=/com.ibm.rational.clearcase.cc_ref.doc/topics/ct_uncheckout.htm" rel="nofollow noreferrer">cleartool unco(您只能在动态视图上尝试),请记住它是否仅适用于:

  • 版本创建者
  • 元素所有者
  • VOB 所有者
  • root(UNIX 和Linux)
  • ClearCase 管理员组的成员(Windows 上的 ClearCase)
  • ClearCase LT 服务器主机的本地管理员(Windows 上的 ClearCase LT)

因此,除非您的项目经理创建了在其中管理那些签出文件的 Vob,否则他/她将获胜无法撤消结账。


正如下面评论的所有相关vob \avob 不再被视为签出(它们的状态被重置,而不是其修改的内容,未受影响)。

为了恢复那些签出的文件,用户可以:

找到的每个文件名都可以通过管道传输到 clearcase结帐命令。

因此,对于给定的视图和 vob,恢复签出的文件相当容易。

A ClearCase administrator can force all files of a given view to be considered as "not checked out" (which is the equivalent of canceling their checkout status), with cleartool rmview:

cleartool rmview -force -uuid (uuid_of_the_view) -vob \aVob

You can get the uuid by grepping the user in the output of:

cleartool descr -l vob:\aVob

See technote "Removing checked-out references of a view from a VOB".
It will work for any view (snapshot or dynamic views, base ClearCase or UCM views)

I would recommend limiting that command to a specific vob.
Anyway, that doesn't concern the Project manager unless he/she is also a ClearCase administrator (ie, he/she is in the same group than the ClearCase administrators group on Windows, or if he/she is root on Unix)

Regarding a cleartool unco (which you can attempt on a dynamic view only), keep in mind if will only work for:

  • Version creator
  • Element owner
  • VOB owner
  • root (UNIX and Linux)
  • Member of the ClearCase administrators group (ClearCase on Windows)
  • Local administrator of the ClearCase LT server host (ClearCase LT on Windows)

So, unless your project manager has created the Vob in which those checked out files are managed, he/she won't be able to undo checkout them.


As commented below, all checkout files of the associated vob \avob are no longer considered checked out (their status is reset, not their modified content, which is untouched).

In order to restore those checked out files, a user can:

Each filename found can be piped to a clearcase checkout command.

So restoring the checked out files is fairly easy for a given view and vob.

凉薄对峙 2024-12-12 18:31:30

如果它是在快照视图中签出的,则不能。如果它是在动态视图中签出的,您也许可以。您可以使用“查找签出”来查找签出的文件并尝试从那里撤消签出。

You can't if it was checked out in a snapshot view. You may be able to if it was checked out in a dynamic view. You can use Find Checkouts to find checked out files and attempt to undo the checkouts from there.

仅一夜美梦 2024-12-12 18:31:30

理想情况下,如果具有更高权限的人可以访问该视图,例如拥有 VOB 所有者帐户的 Clearcase 管理员,最好要求他执行签入(如果您确定可以签入文件)或保存签出文件,然后执行“cleartool unco”。

如果不是这种情况,该命令

cleartool rmview -force -uuid (uuid_of_the_view) -vob <vob-tag-where-checkout-is>

应该执行 VonC 之前提到的技巧。

但是,请注意,此命令会取消 中的所有结帐。
所以如果你说:
\avob\file1.c
\avob\file2.c
假设这两个文件均由同一用户的同一视图签出,并且您只想取消签出 file1.c。上述“cleartool rmview”命令取消 VOB 中的所有检出。因此 file2.c 也将被取消检出。
好消息是签出版本不会丢失,因为它们将保留在缺席用户的本地视图中。一旦他回来,他就可以访问它们。

Ideally, if it is a view that is accessible by someone with higher privilege, e.g. Clearcase administrator who possesses the VOB owner account, it is best to ask him to perform the checkin (if you are sure the file can be checked in) or a saving of the checkedout file followed by a "cleartool unco".

If it is not the case, the command

cleartool rmview -force -uuid (uuid_of_the_view) -vob <vob-tag-where-checkout-is>

should do the trick as mentionned previously by VonC.

However, be aware that this command cancel ALL the checkout in .
So if you have say :
\avob\file1.c
\avob\file2.c
Say both files are checkedout by the same view of the same user and you want to uncheckout only file1.c. The "cleartool rmview" command described above cancels ALL the checkout in the VOB. So file2.c will also be uncheckedout.
The good news is that the checkedout version will not be lost as they will stay locally in the absent user's view. He will be able to access them once he is back.

入怼 2024-12-12 18:31:30

还有另一种策略如何作为管理员处理其他人的结账。访问用户快照视图。如果可以访问计算机,请安装快照位置并将其用作您的位置。在这种情况下,您甚至可以在看到更改的文件时签入这些签出。如果计算机无法访问,您可以使用视图 UUID 构建新的 view.dat,并使用关键文件和目录的cleartool update 命令填充视图。您将看到并能够签入目录版本的更改,但无法访问文件元素更改,因此您必须始终取消文件版本。

There is still another strategy how to handle other persons checkouts as an administrator. Gain access to the users snapshot view. If the computer is reachable, mount the snapshot location and use it as yours. In this case you may even checkin these checkouts as you see the changed files. Is the computer is unreachable, you can construct a new view.dat with the view UUID and populate your view with a cleartool update command for the critial files and directories. Changes in directory versions you will see and be able to checkin, file element changes are not reachable, so you have always to unco file versions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文