3

2 つのブランチがあります: 1. HEAD - 最新バージョン (別名 Trunc) 2. PROD - リリース済みバージョン

リリースされたバージョンのバグを修正する場合、次のうちどれを行いますか:

  1. PROD で修正してから、HEAD にマージします
  2. HEAD で修正してから、PROD にマージします

(1) の利点は、この方法では、HEAD からテストされていないコードを誤って持ち込んで、リリースされたバージョンに害を与えることが絶対にできないことです (PROD は常に HEAD よりも安定しており、テスト済みであるという前提があります)。

(2) の利点は、PROD よりも HEAD の方がコード片の使用法が多い可能性があることです。そのため、PROD でのみ修正すると、そのような使用法をすべて見つけることができず、バグを HEAD に滑り込ませる可能性があります。

個人的には(1)です。どう思いますか?

4

2 に答える 2

4

Bug fixes should be applied to the branch and merged to the the main line of development. You need to do this to avoid bringing new features into a production release that are not intended to be there. Note that easiest way to do this if you need the change in the HEAD may be to apply identical changes in both branches.

于 2008-11-24T08:30:22.347 に答える
0

(1) as well.

Do not forget that not every bugs fixed into PROD have to be merged back into HEAD.

Sometimes, your current code has already evolved in such a way the bugs fixed into PROD are no longer relevant.

于 2008-11-24T08:45:18.417 に答える