将特定变更集从一个 TFS 实例应用到另一个 [英] Apply specific changeset from one TFS instance to another

查看:46
本文介绍了将特定变更集从一个 TFS 实例应用到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将来自一个 TFS 实例的特定变更集中的更改应用到另一个实例的最简单方法是什么?

What is the easiest way to apply the changes from a specific changeset from one TFS instance on another instance?

我想要的是从实例 A 获取某种补丁文件,我可以将其应用于实例 B.由于有两个不同的实例,因此无法使用传统的分支/合并方法.据我所知,TFS 对传统 Unix 意义上的补丁文件的支持很差.

What I want is to get some sort of patch file from instance A that I can apply to instance B. Since there are two different instances, a traditional branch/merge approach cannot be used. And as far as I know, TFS has poor support for patch files in the traditional Unix-sense.

我真的需要检查实例 A 上的变更集并手动压缩相关文件,然后我可以将这些文件提取到实例 B 的源树中吗?

Do I really need to inspect a changeset on instance A and manually zip the relevant files which I can then extract into the source tree of instance B?

推荐答案

事实证明,由于缺乏 TFS 的支持,补丁"路线是一条死胡同.我们最终得到的解决方案是执行一项夜间工作,主要执行以下操作:

Turns out that the "patch" route was a dead end due to lack of support in TFS. The solution we ended up with was to perform a nightly job which basically does the following:

  1. 使用只读用户从远程存储库获取所有代码.
  2. 用另一个分支的内容覆盖我们存储库中一个单独分支的所有内容.
  3. 每当我们想要将他们的更改引入我们的主分支时,从该单独的分支执行合并到主分支.

这篇关于将特定变更集从一个 TFS 实例应用到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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