English 中文(简体)
在视觉工作室 TFS 中应用从一个分支到另一个分支的 diff 补丁
原标题:Apply a diff from one branch as a patch to another in Visual Studio TFS

我们有一个项目,我们一直在6.1版的一个处做一些工作。 在6.1版( Changeset 1800)中,对6.1版(changese 1800)所做的一个修改是一个错误,有人决定它非常紧急,值得我们6.0版的发布稿补丁。

现在, 在修改 1800 之前和之后, 对相关文件都进行了修改。 他们想要的只是将补丁应用到 6. 0 上 。

根据>>http://linux.die.net/man/1/patch ,看来最好的办法是“强”创建 diff 文件 ,将修改内容1800至1799,然后“强”应用 diff 文件的补丁 到6.0。 我甚至不知道在TFS中从哪里开始这样做。

作为后备计划,我总是可以亲手经历1800年的变换中的差别, 把它们复制到最新版本的制作中来补补补, 但我希望尽可能做得很好。

Aside: I understand that by applying just a diff, you risk the fact that some of the code involved in the 1799>1800 diff relies on code that was only established between the current production version and changeset 1799, but that can easily be verified by quickly building and testing production after the diff patch is applied. We aren t worried about that.

最佳回答

好吧,我不确定我完全理解, 但这里是:

TFS 的更改集不会存储文件的绝对内容, 但差别( 添加、 删除、 更改) 。

如果您想要将您的错误修正从版本6.1报告到6.0, 且此修正包含在修改1800(仅包含此修正)中, 那么只需将给定的修改et合并到版本6.0。 在修改版本1800之前所做的所有修改都不会合并到6.0, 只有您在这个修改选项中所做的修改将被合并 。

当您合并时, 您有两个选项 :

  1. Merge all the changes from the source branch to the destination one
  2. Merge a selected changeset from the source to the destination one.

使用第二个,并指定修改1800,你会没事的。

一些图片 :

""https://i.sstatic.net/9Dkjl.png" alt="在这里输入图像描述"/"

""https://i.sstatic.net/XA6y4.png" alt="此处输入图像描述"/ >

选中的更改将合并 < 坚固 > < / 坚固 > 。

问题回答

暂无回答




相关问题
Tracking Versions, Builds, Revisions, with TortiseSVN

I am the sole developer on a project and have been using tortoiseSVN for quite a while. Now Id like to start getting version information working correctly in the project I.E. show Major Version, Minor ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

How to handle different csproj [closed]

I am working in a team of five. We are working on a C# application with five csprojects. The problem is that for each csproject, each of my colleagues has their own ideas on how to reference a DLL; ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签