TFS分支是物理快照还是逻辑快照? [英] Is a TFS branch a physical or logical snapshot?

查看:72
本文介绍了TFS分支是物理快照还是逻辑快照?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用分支方法在TFS中分支代码时,代码是物理分支还是逻辑分支?从逻辑上讲,我的意思是只是一个变更集(更改的增量)还是所有文件都被复制了?

When code is branched in TFS using the branch method, is the code physically or logically branched? By logical, I mean is it just a changeset (changed deltas) or are all of the files copied?

推荐答案

分支文件是不能在TFS数据库中复制。在修改分支版本之前,不会创建文件的新版本。这就是为什么在大型项目上创建分支不会花很长时间的原因。

Branched files are not copied within the TFS database. A new version of the file will not be created until the branched version is modified. This is why creating a branch on a large project does not take forever.

来源:

http:// www .codeplex.com / BranchingGuidance / Wiki / View.aspx?title = Isolation%20for%20Collaboration& referringTitle = Home

分支下的第四段说明它不会创建相同文件的单独副本:

The fourth paragraph under branching explains that it does not create a separate copy of identical files:


创建分支只需要很少的
额外的存储空间。服务器
仅通过
最小化所需的存储,无论文件夹中包含多少个不同文件
,都保留一个相同内容
的副本。因此,如果您
拥有100个1 MB文件的副本,而所有
文件都是相同的,则服务器
将仅存储1 MB,而不是100 MB。
创建新分支并提交时,
新分支
中与
源分支中的文件相同的所有文件都指向同一
内容。结果是分支
几乎不占用额外的
存储空间,并且仅当分支文件
与源文件不同时,存储空间
才会扩展。
甚至在文件更改时,Team
Foundation Server都使用
差异引擎分析文件之间的变化
并再次优化
的存储空间。

Creating branches uses very little additional storage space. The server minimizes the storage required by only keeping one copy of identical content no matter how many different files are contained in the folder. So, if you have 100 copies of a 1 MB file and all of the files are identical, the server will store only 1 MB, not 100 MB. When you create a new branch and commit, all of the files in the new branch that are identical to the files in the source branch point to the same content. The result is that a branch consumes very little additional storage space, and that storage space expands only when the branched file becomes different than the source. And even when files change, Team Foundation Server employs a differencing engine to analyze changes between files and once again optimize storage space.

Microsoft分支机构指南PDF:

Microsoft Branching Guidance PDF:

http://geeks.netindonesia.net/downloads/etc/TFS-Branching.pdf

这篇关于TFS分支是物理快照还是逻辑快照?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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