gpt4 book ai didi

svn - SVN等VCS如何存储文件?

转载 作者:行者123 更新时间:2023-12-01 06:20:27 25 4
gpt4 key购买 nike

在学习 Git 的过程中,我了解到像 SVN 这样的其他 VCS 系统通常将更改存储到文件的基本版本。所以,作为一个合乎逻辑的推论,如果我想检查文件 A 的版本 4,SVN 会在交付我想要的版本之前,使用版本 4 之前提交的所有更改集即时修补基本版本文件?

下图可能会有帮助。 Traditional VCS like SVN

简而言之,只有基础版本文件是静态存储的,所有其他版本都是使用基础文件和必要的变更集动态生成的。

对吗?

谢谢。

最佳答案

来自 Subversion 设计文档:

Like many other revision control systems, Subversion stores changes as differences. It doesn't make complete copies of nodes; instead, it stores the latest revision as a full text, and previous revisions as a succession of reverse diffs (the word "diff" is used loosely here – for files, it means vdeltas, for directories, it means a format that expresses changes to directories).

重要的一点是,最新 修订版是基础版本,(反向)差异是从该版本向后存储的。

http://svn.apache.org/repos/asf/subversion/trunk/notes/subversion-design.html#server.fs.struct

您还可以查看链接以了解提交如何存储在存储库中。

关于svn - SVN等VCS如何存储文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7206286/

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