clearcase snapshot hijacked files : how to checkout/checkin changed files

前端 未结 1 1407
一个人的身影
一个人的身影 2021-01-16 16:01

Clearcase sucks a lot. It seems I cannot just save modifications to my project quickly. By quickly I mean in less than 1 second.

The solution I have found is to use

相关标签:
1条回答
  • 2021-01-16 16:39

    Your sequence for updating ClearCase file from a git working tree is pretty much the "optimal" one, meaning it won't get much faster.

    One alternative I have been playing with when using ClearCase and Git is clearfsimport, with 2 ClearCase views.

    • one snapshot view is for updating a set of files which are then make hijacked (for a git working tree to use)
    • one snapshot (or dynamic actually) view to be the recipient, the destination of the changes done in the first working tree.

    clearfsimport allows you to take any working tree (managed or not by ClearCase, it doesn't care), and import it in a ClearCase view (it can be a dynamic view, by the way), and:

    • checkout only the modified files
    • leave the identical files alone
    • remove / add the files in the ClearCase view, which were deleted/created in the working tree

    It is a process more efficient than diff'ing everything, and it should be much faster.
    That doesn't mean it is fast.
    It is still, after all, ClearCase.

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