SVN 是否压缩二进制内容?

发布于 2024-07-11 18:40:46 字数 105 浏览 8 评论 0原文

我想知道 SVN 是否真的在提交期间压缩服务器上的二进制内容? 我知道二进制文件存储 diffgrams 用于比较和版本控制,但想知道提交的新文件是否会在服务器上占用与客户端 PC 上相同的卷?

I was wondering whether SVN actually compresses the binary content on the server during Commits? I know that the binary store the diffgrams for comparison and versioning but wondered whether a new file commited would occupy the same volume on the server as it does on the client pc?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

穿越时光隧道 2024-07-18 18:40:46

我相信是这样。

从这里: http://svn.apache.org/repos/asf/subversion/主干/安装

 * libz(客户端和服务器必需) 
  
     Subversion uses zlib for compressing binary differences.
     These diff streams are used everywhere -- over the network,
     in the repository, and in the client's working copy.

I believe so.

From here: http://svn.apache.org/repos/asf/subversion/trunk/INSTALL

  * libz  (REQUIRED for client and server)
     Subversion uses zlib for compressing binary differences.
     These diff streams are used everywhere -- over the network,
     in the repository, and in the client's working copy.
在风中等你 2024-07-18 18:40:46

是的,Subversion 会压缩新文件以及更改。 (服务器不关心文件是文本还是二进制。)

但是请注意:如果您添加的文件已经压缩(例如 zip 存档、mp3 文件、JPEG、GIF),则不会发生颠覆能够使其变得更小。

Yes, Subversion compresses new files, as well as changes. (The server doesn't care if the file is text or binary.)

Note, however: if the file you are adding is already compressed (e.g. a zip archive, an mp3 file, a JPEG, a GIF) subversion won't be able to make it any smaller.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文