Does SVN Compress the binary content?

删除回忆录丶 提交于 2019-12-07 01:18:05

问题


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?


回答1:


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.



回答2:


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.



来源:https://stackoverflow.com/questions/458182/does-svn-compress-the-binary-content

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!