ClearCase: Can I hijack a file in dynamic view?

前端 未结 2 540
一个人的身影
一个人的身影 2020-11-27 22:44

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 wo

相关标签:
2条回答
  • 2020-11-27 22:58

    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.

    eclipsed file

    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.

    0 讨论(0)
  • 2020-11-27 23:22

    Why not doing an unreserved checkout?

    cleartool checkout -unreserved filename

    0 讨论(0)
提交回复
热议问题