在TFS中合并多个文件 [英] Merge multiple files in TFS

查看:76
本文介绍了在TFS中合并多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用TFS作为软件的版本控制系统.当前,该软件在两个单独的分支中具有两个版本:分支版本1.0"和分支版本2.0". "1.0版"中的每个修补程序都必须合并到"2.0版"中.我从要合并的文件的上下文菜单中手动合并.

We're using TFS as version control system for our software. Currently the software has two versions in two separate branches: branch "Version 1.0" and branch "Version 2.0". Every fix in "Version 1.0" has to be merged into "Version 2.0". I merge manually from the context menu on the file to be merged.

我的问题是,某些修补程序包含多个文件,这些文件位于不同的文件夹中.然后,我必须对每个文件执行相同的操作.

My problem is that some fixes comprise more than one file located in different folders. Then I have to perform the same action on every file.

是否可以一次合并一组文件?如果没有,是否有推荐的做法来执行合并操作?

Is there a posibility to merge a group of files at once? If not, is there a recomended practice how to perform the merge operation?

推荐答案

您有两种选择:

  1. 如果知道要合并的变更集(或要避免合并的变更集),则可以从要合并的文件中选择结构上的文件夹,然后通过选择所需的特定变更集来进行合并.如果您有变更集2000、2001、2004、2010,并且想要2001和2010,则这有点复杂.每次合并只能合并列表中的连续变更集,因此必须先合并2001,然后再合并2010.这仍然比合并更好许多文件(如果您有更多文件,则更改组).
  2. 如果要将该文件夹下的所有内容合并到一个特定的变更集或最新的变更集,则可以一次批量合并.

在这两种方法中,您仍然必须解决以下问题:对源分支和目标分支中的同一文件中的同一行进行了不同的更改.

In both of these you will still have to resolve issues where a different change was made to the same line in the same file in the source and target branches.

这篇关于在TFS中合并多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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