gpt4 book ai didi

svn - [SVN] : The concept of branch

转载 作者:行者123 更新时间:2023-12-02 07:53:25 24 4
gpt4 key购买 nike

我想知道在创建分支时,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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com