Subversion:还有比“svnsync"更快的吗? [英] Subversion: Is there anything faster than "svnsync"?

查看:31
本文介绍了Subversion:还有比“svnsync"更快的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我将我的 subversion 存储库存储在某个云上(例如 code.google.com),但由于各种原因,我需要将我的代码设为非公开.

So I have my subversion repository stored on some cloud (for example code.google.com) but due to various reasons I need to make my code non-public.

我决定需要下载整个存储库并迁移到我自己的 svn 服务器.

I decided I needed to download the entire repository and migrate to my own svn server.

所以我开始使用:

svnsync init DEST SRC
svnsync sync DEST

每次修改 repo 大约需要 0.5 秒!

And it took about 0.5 seconds for each revision of the repo!

幸运的是,我的 repo 只有 200 次修订……所以要等几分钟.但是对于具有 200,000 或 2,000,000 次修订的成熟项目呢!

Luckily my repo only had like 200 revisions... so a couple of minutes to wait. But what about mature projects that have 200,000 or 2,000,000 revisions!

... 2e6 * 0.5/60/60/24 ~ 大约 11 天!

... 2e6 * 0.5 / 60 / 60 / 24 ~ about 11 days!

有什么比svnsync"更快的方法可以从云端下载您的存储库?

Is there anything faster than "svnsync" to download your repo from a cloud?

推荐答案

好吧,显然您可以自己将其备份到服务器上,然后将其压缩并下载.或者您无法下载所有历史记录.

Well, obviously you could back it up yourself on the server and then zip it and download it. Or you could just not download all the history.

但是这个问题有什么意义呢?这有点学术性,因为您的问题已解决.

But what's the point of this question? It's a bit academic, as your problem is solved.

这篇关于Subversion:还有比“svnsync"更快的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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