简体   繁体   English

TFS-设置分支以仅允许签入“合并”变更集

[英]TFS - Set a branch to allow check ins of “Merge” changeset only

In the company I work for we have a Release branch from which we publish versions to production. 在我工作的公司中,我们有一个Release分支,从该分支将版本发布到生产环境。

I want to prevent a situation where someone checks in changes made in that branch directly without the changes were synced from the development branch. 我想防止有人直接检查在该分支中所做的更改而未从开发分支同步所做更改的情况。

Is there a way where I could set the Release branch to allow check-ins for change-sets which are of "Merge" type only? 有没有一种方法可以设置Release分支以允许签入仅“合并”类型的变更集?

By this I could ensure the change-set was originated from the development branch and achieve my goal in addition to preventing non synced code between production and development branches. 这样,我可以确保变更集源自开发分支,并且除了防止生产分支与开发分支之间的代码不同步之外,还可以实现我的目标。

You cannot fully restrict a branch to allow merges only. 您不能将分支完全限制为仅允许合并。 But there is a checkin-policy made by a Microsoft MVP which you can configure . 但是,可以通过配置Microsoft MVP来制定签入策略 Combined with the checkin-policy from the TFS Power Tools you can configure it to a speficic folder. 结合TFS Power Tools中的签入策略,您可以将其配置为特殊文件夹。 The configuration process is explained on teh download page. 在下载页面上说明了配置过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM