ClearCase:我可以在动态视图中劫持文件吗? [英] ClearCase: Can I hijack a file in dynamic view?

查看:53
本文介绍了ClearCase:我可以在动态视图中劫持文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Unix平台中以动态视图进行工作。我需要临时劫持文件,并在以后取消劫持。但是命令 chmod + w filename 不起作用。

我收到消息 chmod:警告:不能更改文件名

我可以从Windows的快照视图中更改文件的只读属性。

I am working in a dynamic view in Unix platform. I need to hijack a file temporarily and cancel the hijacking later. But the command chmod +w filename is not working.
I get the message chmod: WARNING: can't change filename.
I can change the read-only attribute of the file from a snapshot view in windows.

问题:


  1. 在动态视图中是否可以进行劫持?如果是,怎么办?

  2. 是否有cleartool命令来取消对文件的劫持?


推荐答案

动态视图的副作用之一是,ClearCase将控制通过网络访问的文件的属性,而不是快照视图(在快照中复制所有内容)您的硬盘驱动器)。

One of the side-effects of a dynamic view is that ClearCase will control the attributes of the file you access to through the network, as opposed of a snapshot view (where everything is copied on your hard drive).

1 /是的,即使它不是真正的被劫持状态也可以。

动态等效项命名为 eclipsed:这个想法是要使用一个与版本号相同的私人文件代替版本文件的名称( eclipsing)。

1/ Yes it is possible, even though it isn't really an "hijacked" state.
The dynamic equivalent is named "eclipsed": the idea is for a private file of the same name than a versioned one to take the place ("eclipsing") of the versioned file.

您只需复制该文件作为备份,然后通过不选择它来使其不可见(在动态视图中的任何位置键入 cleartool edcs ):

You simply make a copy of that file as a backup, and make that file invisible by not selecting it (type "cleartool edcs" anywhere within the dynamic view):

element /vob/path/to/file -none

然后重命名备份副本,恢复其原始名称。

Then you rename the backup copy, restoring its original name.

2 /要撤消Eclipse文件,只需将其移动或删除

立即还原已版本化的文件(由私有文件覆盖)。

2/ to undo an eclipsed file, you simply move it or delete it.
The versionned file (eclipsed by the private one) is restored instantly.

请参阅IBM文章 关于蚀文件和ClearCase

这篇关于ClearCase:我可以在动态视图中劫持文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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