svn - [SVN] : The concept of branch

标签 svn branch

我想知道在创建分支时,SVN只是从主干上复制一个完整的副本还是利用某种机制来实现?

谢谢。

最佳答案

AFAIK,它所做的是对您要从中分支的修订版本的引用,然后记录您 checkin 的任何内容的增量。

引用SVN书:

Subversion's repository has a special design. When you copy a directory, you don't need to worry about the repository growing huge—Subversion doesn't actually duplicate any data. Instead, it creates a new directory entry that points to an existing tree. If you're a Unix user, this is the same concept as a hard-link. From there, the copy is said to be “lazy”. That is, if you commit a change to one file within the copied directory, then only that file changes—the rest of the files continue to exist as links to the original files in the original directory.

关于svn - [SVN] : The concept of branch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2309866/

相关文章:

android - 在 SVN 中添加一个 android 测试项目到当前的 android 项目

svn - 如何查看 Subversion 中某个版本对文件所做的更改

svn - 使用日语注释构建 Java 程序(错误 : unmappable character for encoding UTF8)

svn - 从分支合并到主干, 'Merge range of revisions'

version-control - GitHub 多个存储库与多个环境的分支

java - 如何在 Maven 中获取特定分支的 SVN 内部版本号

GitHub Markdown - 添加当前分支名称

SVN 不会忽略嵌套目录

svn - 将代码与两个Subversion存储库同步

git同时在两个分支上工作