TFS-设置分支以允许签入“合并"消息.仅变更集 [英] TFS - Set a branch to allow check ins of "Merge" changeset only

查看:92
本文介绍了TFS-设置分支以允许签入“合并"消息.仅变更集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我工作的公司中,我们有一个Release分支,从该分支将版本发布到生产中.

In the company I work for we have a Release branch from which we publish versions to production.

我想防止有人直接检查在该分支中所做的更改而没有将这些更改与开发分支同步的情况.

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.

有没有办法设置Release分支以允许签入仅属于合并"类型的变更集?

Is there a way where I could set the Release branch to allow check-ins for change-sets which are of "Merge" type only?

通过这种方式,我可以确保变更集源自开发分支,并且除了防止生产分支与开发分支之间的代码不同步之外,还可以实现我的目标.

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.

推荐答案

您不能完全限制分支以仅允许合并.但是您可以配置Microsoft MVP制定的签入策略.结合TFS Power Tools中的签入策略,您可以将其配置为特殊文件夹.在下载页面上说明了配置过程.

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. Combined with the checkin-policy from the TFS Power Tools you can configure it to a speficic folder. The configuration process is explained on teh download page.

这篇关于TFS-设置分支以允许签入“合并"消息.仅变更集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆