ClearCase:是否可以取消不是从您自己的视图进行的结帐? [英] ClearCase: Is it possible to cancel checkouts not made from your own view?

查看:61
本文介绍了ClearCase:是否可以取消不是从您自己的视图进行的结帐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

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

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

您可以获得通过在以下输出中对用户进行grep操作来修改uuid:

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

cleartool descr -l vob:\aVob

请参阅技术说明 从VOB中删除视图的检出引用

适用于任何视图(快照或动态视图,基本ClearCase或UCM视图)

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)

我建议限制该命令t

无论如何,除非他/她也是ClearCase管理员,否则与项目经理无关(即,他/她与Windows上的ClearCase管理员组位于同一组,或者如果他/她是Unix上的root)

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)

关于 cleartool unco (只能在动态视图上尝试使用),请记住,如果仅适用于以下情况:

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


  • 版本创建者

  • 元素所有者

  • VOB所有者

  • root(UNIX和Linux)

  • ClearCase管理员组的成员(Windows上为ClearCase)

  • ClearCase LT服务器主机的本地管理员(Windows上为ClearCase LT)

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

因此,除非您的项目经理创建了Vob,用于管理那些签出的文件,他/她将无法撤消签出它们。

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.

在下面进行了评论,关联的VOB \avob all 个签出文件不再视为已签出(其状态已重置,而不是未修改的未修改内容。)

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:

  • for a snapshot view, list hijacked files (as in this technote)
  • for a dynamic view list eclipsed files (see technote on eclipsed files)

找到每个文件名可以通过管道传递给 clearcase checkout 命令。

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

S对于给定的视图和VOB,恢复签出的文件非常容易。

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

这篇关于ClearCase:是否可以取消不是从您自己的视图进行的结帐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆