How to force rebase before each delivery?

冷暖自知 提交于 2020-03-23 12:05:10

问题


We set policy to force rebase before delivery if any baseline is recommended.

But we would not recommend baseline everyday. We will do it once in 2 weeks like that.

In between recommend baseline duration, people are often facing issues in functionality as they have not taken latest code base.

Is there any way to force to rebase before each delivery? [irrespective of baseline is recommended or not].

Is it recommended practice to rebase before each delivery?


回答1:


It is recommended to rebase before delivering, and it usually is based on the "recommended baseline" mechanism.

So even if you said "irrespective of baseline is recommended or not", I would still suggest you look at "this deliver policy: 'Rebase before delivery'".

This policy (Require development stream to be based on the project's recommended baseline(s) prior to delivery) requires developers to rebase their source streams to the target stream current recommended baselines before they deliver work to the target stream.
The policy can be set per project or per stream, for interproject and intraproject deliver operations.

The goal of this policy is to have developers build and test their work in their development work areas against the work included in the most recent stable baselines before they deliver to the target stream. This practice minimizes the amount of merging that developers must do when they perform deliver operations.

From UCM policies:


If you don't recommend baselines on the parent stream, then you need to define a preop deliver trigger (as in this thread):

cleartool mktrtype -ucm -preop deliver_start -execwin ccperl "\\share\path\to\script.pl" -c "Check if rebase activity exists before delivering" rebase_before_delivery@\pvob

With script.pl a script which would list all activities of the current stream, checking if the latest activity is a rebase.xxx one.

http://www.ibm.com/developerworks/forums/message.jspa?messageID=14116547


来源:https://stackoverflow.com/questions/8892001/how-to-force-rebase-before-each-delivery

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