门控签到允许更改文件夹而不是源设置的一部分。 [英] Gated check-in allowing changes from folders not part of source settings.

查看:109
本文介绍了门控签到允许更改文件夹而不是源设置的一部分。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们为Main\Src和Main \Database定义了两个单独的门控签到,用于源代码和DB。如果有人在单次登记时尝试从Main\Database和Main\src文件夹中签入文件,TFS会弹出选项以选择gated build,而不是
拒绝签到或要求检查 - 单独。


选择后选项,TFS将运行该构建并签入完整的ShelveSet,其中包含来自其他文件夹的文件而不进行编译。


截至目前,我们是  请求开发人员避免这种情况,但我们不确定每个人都遵循这一点,因此我们遇到了一些构建问题。
如果有任何方法可以拒绝这类签到,请告诉我们。


我们目前正在TFS 2012上。







解决方案

您好,


感谢您在此发帖。


我可以使用TFS2013重现您的问题。


如果我在一次检入中检入所有挂起的更改,它将会弹出 让我选择一个门控版本,在成功构建之后,虽然我们没有选择那个门控版本,但我们都会检查所有挂起的更改相关文件。




您可以让开发人员右键单击该项目,然后从中选择"签入"选项。或者,您可以为每个项目创建单独的工作区,并仅映射目录 对于那个项目,这样的变化不会被"共享"。



We have two separate gated check-ins defined for Main\Src and Main\Database for source code and DB. If anyone tries to check-in files from Main\Database and Main\src folder in single check-in, TFS will pops up with option to choose gated build, instead of rejecting check-in or asking to check-in separately.

Post selecting option, TFS will run that build and check-in complete ShelveSet, which has files from other folders without compiling.

As of now we are requesting Dev to avoid this but we are not sure everyone follows this, and we faced some build issues due to this. Please let us know if there is any way to reject these kind of checkins.

We are currently on TFS 2012.



解决方案

Hi,

Thanks for posting here.

I can reproduce your issue on my side with TFS2013.

If I check in all the pending changes in a single check in, it will pop up to let me select one gated build, after the successful building all the pending changes related files are checked in though we don't select that gated build.

You may let the developers right-click the project and choose the Check-in option from there. Or you may create separate workspaces for each project and only map the directories  to that project, such way the changes will not be 'shared'.

May


这篇关于门控签到允许更改文件夹而不是源设置的一部分。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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