如何使用 ClearCase 命令行工具默认取消保留签出
有没有办法让 cleartool
默认情况下不保留结帐?也许是 ~/.cleartool
文件或某些环境变量?我知道可以在 VOB(或所有 VOB)上设置默认值,但该选项超出了我的控制范围。
我使用的 ClearCase 版本是:
$ ct -version ClearCase version 7.0.1 (Wed May 30 17:04:58 EDT 2007)
7.0.1.0-RATL-RCC-IFIX01 (Wed Sep 19 16:08:10 EDT 2007) @(#) MVFS version
7.0.1.0-IFIX01 (Thu Sep 6 20:09:08 2007) built at $Date: 2009-12-08.14:59:16 (UTC) $ cleartool
7.0.1.0-IFIX01 (Thu Aug 9 20:20:45 EDT 2007) db_server
7.0.1.0-IFIX01 (Fri Sep 14 20:23:09 EDT 2007) VOB database schema version: 54
您可能会问“为什么默认值会被设置为 -reserved
?”问题。然而,事情超出了我的控制范围。
更新:我忘记提到环境是Linux。
Is there a way to make cleartool
checkouts unreserved by default? Perhaps a ~/.cleartool
file or some environment variable? I understand the default can be set on the VOB (or all VOBs), but that option is beyond my control.
The ClearCase version I'm using is:
$ ct -version ClearCase version 7.0.1 (Wed May 30 17:04:58 EDT 2007)
7.0.1.0-RATL-RCC-IFIX01 (Wed Sep 19 16:08:10 EDT 2007) @(#) MVFS version
7.0.1.0-IFIX01 (Thu Sep 6 20:09:08 2007) built at $Date: 2009-12-08.14:59:16 (UTC) $ cleartool
7.0.1.0-IFIX01 (Thu Aug 9 20:20:45 EDT 2007) db_server
7.0.1.0-IFIX01 (Fri Sep 14 20:23:09 EDT 2007) VOB database schema version: 54
You may ask "why in world would the default ever be set to -reserved
?" A fair question. However, the matter is beyond my control.
Update: I neglected to mention the environment is Linux.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 ClearCase Explorer 菜单中:
取消选中“签出”部分中的“保留”。
但是,这是针对一个用户的,而不是针对所有用户的全局设置...
在 Windows 上,这存储在注册表中的以下位置:
key:
因此,如果您可以将其添加为安装后设置,您可以将该行为推广到使用自定义设置的所有用户。
替代文本 http://www-01.ibm。 com/support/docview.wss?uid=swg21135939&aid=2
另请参阅此 IBM 技术说明。
OP unhillbilly 对命令的评论正确
cleartool unres
(未保留),其中:In the ClearCase Explorer, menu:
Unchecked "reserved" in the "Check out" section.
However, this is for one user, not a global setting for all users...
On Windows, this is stored in the registry at:
key:
So if you can add that as a post-install setting, you could generalize that behavior to all users using your custom setup.
alt text http://www-01.ibm.com/support/docview.wss?uid=swg21135939&aid=2
See also this IBM technote.
The OP unhillbilly comments rightly about the command
cleartool unres
(unreserve), which:我知道这是一篇旧帖子,但如果将来有人提出同样的问题,这是我的答案。
如果您想设置一个触发器,以便每个人都执行 UNRESERVED 结帐,请使用以下命令:
I know this is an old post, but in case anyone in the future comes along with the same question, here's my answer.
If you want to set up a trigger so that everyone performs UNRESERVED checkouts then use the following command:
我上面提出的命令应该有另一个单引号,这样它就是 '$CLEARCASE_PN' TRIGGERNAME
The command I posed above should have another single quote so that it is '$CLEARCASE_PN' TRIGGERNAME