How to lock SVN trunk except for merges from branc

2020-03-01 02:41发布

I'd like to prevent developers working directly on the trunk.

I'm aiming to enforce all developers off the trunk and to work on there own branches until CI tests are cleared. They then have to merge from the trunk to their branch (to pick up latest changes), run and pass tests before they merge back to the trunk.

Is there any rules for this style of SVN usage?

7条回答
对你真心纯属浪费
2楼-- · 2020-03-01 03:26

Restrict their access to /trunk with SVN permissions. Allow them to read, but dis-allow to write. Assign one "architect" role who can write to /trunk. Developers will have to report to the architect when a branch is ready, the architect will pass tests manually, and then will merge into /trunk.

查看更多
登录 后发表回答