ClearCase: Can I hijack a file in dynamic view?

天涯浪子 提交于 2019-11-26 07:47:29

问题


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.

Questions:

  1. Is hijacking possible in a dynamic view? If yes, how?
  2. Is there a cleartool command to cancel hijacking of a file?

回答1:


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

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/ to undo an eclipsed file, you simply move it or delete it.
The versionned file (eclipsed by the private one) is restored instantly.

See IBM article "About eclipsed files and ClearCase" for more.




回答2:


Why not doing an unreserved checkout?

cleartool checkout -unreserved filename



来源:https://stackoverflow.com/questions/7798915/clearcase-can-i-hijack-a-file-in-dynamic-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!