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

江枫思渺然 提交于 2019-12-01 13:08:04
VonC

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.

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