有没有办法当我们检查代码到父分支时,代码会自动检入子分支? [英] Is there a way that when we check in code to parent branch the code will check in to child branch automatically?

查看:84
本文介绍了有没有办法当我们检查代码到父分支时,代码会自动检入子分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在TFS 2013.5上实现它:

Is there a way to implement that on TFS 2013.5:

每当代码被推送到Parent分支时,我们希望自动将相同的代码推送到子分支。签入子分支时,不应对父分支产生任何影响。

Whenever code is pushed to Parent branch, We want same code to be pushed to child branch automatically. When check in to child branch, there should not be any impact to parent branch.

谢谢。

推荐答案

你好Lennie_Lee,

Hi Lennie_Lee,

感谢您在此发帖。

现在默认情况下TFS中没有这样的功能,您需要自己合并变更集。或者您可以尝试使用以下链接中的扩展程序:

There is no such feature in TFS by default now, you need to merge the changeset by yourself. Or you could try to use the extension in the following link:

https: //marketplace.visualstudio.com/items?itemName=KulikovDenis.AutoMergeforVisualStudio2015

您可以使用此扩展程序轻松地合并和检查变更集到其他分支。或者您可以尝试编写自己的脚本来调用tf merge命令,然后将其设置为计划任务。

You could use this extension to merge&check in the changeset to other branches easily. Or you could try to write your own script to call the tf merge command, then set it as scheduled task.

最好的问候

Limitxiao Gao

Limitxiao Gao


这篇关于有没有办法当我们检查代码到父分支时,代码会自动检入子分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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