ClearCase: Is it possible to deliver or rebase selectively?

只愿长相守 提交于 2019-12-02 05:26:17

问题


  1. When delivering stream A to stream B, is it possible only to deliver selected elements (directories to be precise) from A to B?
  2. When rebasing a stream A from a baseline B, is it possible only to rebase selected elements (directories to be precise) from B to A?

回答1:


With ClearCase UCM:

  • what you are delivering are baselines or activities
  • what you are rebasing are baselines only.
    (and only baselines coming from the direct parent Stream, at that).

So if you directories or elements are the only items of an activity, and that activity doesn't depend on other activities (which can happen when a deliver to another Stream has already been done: all present activities are "linked together" by a technical baseline), then you can deliver just those items (by delivering only that activity).

If your directories and files are then only difference between the source baseline and the foundation baseline you are about to change on the Stream you are rebasing, you can rebase just those items.

But the fact is: it is difficult to make partial deliveries or rebases with ClearCase.




回答2:


cleartool findmerge does exactly what you are looking for. You'd need to build a wrapper (ANT/Perl) around it if your list is long.

so go to the target stream/view context and run findmerge srcdir –type d –merge -print to test and replace -print with -exec,-gmerge,-abort etc. as you need. Just replace srcdir with your directory or an iterative list/variable/array in your script.

Find complete details look at http://www.ipnom.com/ClearCase-Commands/findmerge.html



来源:https://stackoverflow.com/questions/7939157/clearcase-is-it-possible-to-deliver-or-rebase-selectively

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