Rollback via label in clearcase

核能气质少年 提交于 2019-12-08 04:18:51

问题


I take care of a couple of extremly large projects. These projects are also divided into smaller del-projects some are delivered as a large project at one time. The problem I am having is that when all these small projects are merged into our release branch its dam near impossible for me to rollback 1000's of files. I am currently rethinking our branching strategy. Everything now is being merged with a label. We are also merging everything to a build-test branch before we even think about dumping it into our release branch.

If I need to do a rollback based on label what is the best way to do this? I have a few scripts but can't get this to work.. hopefully some ClearCase god here can help ASAP!

Thanks!

Dave


回答1:


If you need to rollback to a label, you can:

  • create a dynamic view
  • edit its config spec to select said label
  • use that dynamic view as source for a clearfsimport into your main view (the one with the latest releases)

A clearfsimport -rmname ("mirror") will update/add/remove the files in the destination view with the files from the source (which is, here, your dynamic view set to the label you want to rollback).



来源:https://stackoverflow.com/questions/13641535/rollback-via-label-in-clearcase

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