Subversion - should anyone be developing off the trunk?

前端 未结 17 1691
清酒与你
清酒与你 2020-12-13 03:55

When using Subversion, should developers be working off the trunk or should the trunk be only used for merges from each individual developer\'s branch and watched by a conti

17条回答
  •  [愿得一人]
    2020-12-13 04:18

    There's an argument to be made that developers should be required to work on trunk.

    If you let them branch off, some will be tempted to maintain those branches indefinitely and cross-sync with trunk at regular intervals. This will inevitably lead to complicated merge operations, and these in turn produce bugs.

    By forcing everyone onto trunk, they have to keep pretty close to the head, so there will be less risk of bugs being introduced with bad merges. Also, since everyone runs up-to-date code, they're more likely to notice bugs as they creep up, and fixes will get committed faster.

    Ofcourse, sometimes a large feature needs to be staged separately, but in those cases a specially approved exception can be made.

提交回复
热议问题