SVN 存储库的总大小? [英] Total size of a SVN repository?

查看:57
本文介绍了SVN 存储库的总大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我测量服务器上的文件夹大小时,我有一个 8 GB 的 SVN 存储库.

I have a SVN repository that is 8 GB when I measure the folder size on the server.

但是当我在本地检出它时(只是从根目录检出完整的存储库,所有分支/标签)它的 50+ GB(仍在计算中).

But when I check it out locally (simply checking out the full repository from the root, all branches/tags) its 50+ GB (still counting).

似乎 SVN 在压缩其内容方面做得很好.大小怎么这么不一样?

It seems that SVN does a good job at compressing its content. How come the size is so different?

有没有什么方法可以计算存储库的实际大小,而无需在本地进行完整的检出?

And is there any way of computing the actual size of the repository without having to do a full checkout locally?

推荐答案

当您在存储库中创建文件夹的分支时,实际上并未复制该文件夹的内容.仅仅为了重复数据而浪费空间是没有意义的.有关更多信息,请参阅好书中有关分支的章节,尤其是 创建分支,标题为Cheap Copies.

When you make a branch of a folder in repository the contents of that folder is not actually copied. No point in wasting space on mere duplication of data. For more info see the chapter about branching in the good book, especially boxed text at the end of the section Creating Branches, titled Cheap Copies.

至于实际尺寸的问题,我所知道的没有办法计算,但我怀疑是否有必要.如果没有空间,那就腾出一些空间.要点是您不需要工作副本中的所有分支,所以只检查您真正需要的.

As for the question of the actual size, there is no way to compute that that I know of, but I doubt if it is necessary. If there is no room, then make some room. Main point is that you don't need all the branches in your working copy, so checkout only what you really need.

这篇关于SVN 存储库的总大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆