USB 3.0 密钥上的大型 SVN 存储库 - 如何加速和简化? [英] Large SVN repository on USB 3.0 key - how to speed up and simplify?

查看:18
本文介绍了USB 3.0 密钥上的大型 SVN 存储库 - 如何加速和简化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于如何将版本控制存储库签出到 USB 密钥的最佳实践,存在一些现有问题.但这些问题都是在 USB 3.0 出现之前提出的. 由于技术、USB 规格和成本相关的原因,USB 2.0 拇指驱动器对于小文件的性能令人惊讶地惨淡.由于我们使用的是集中式版本控制系统 (Subversion),因此检查某种便携式驱动器是我们为离线工作提出的最佳工作流程.

There are a few existing questions regarding the best practices about how to check out a version controlled-repository to a USB key. But those questions were before USB 3.0 came out. For reasons technical, USB-spec and cost-related, USB 2.0 thumbdrive performance is surprisingly dismal for small files. Since we're using a centralized version control system (Subversion), checking out to some sort of portable drive is the best workflow we came up with for working off-line.

我们的存储库大约有 280MB,约 6,000 个文件.我们从不让它完成对 USB 2.0 密钥的检查,因为它会花费太长时间(尤其是当您试图离开一天时 - 小时以上?).我们尝试创建存储库的 .zip 文件,但解压需要更长的时间.

Our repository is about 280MB, ~6,000 files. We never let it complete checking out to the USB 2.0 keys because it would take too long (especially when you're trying to leave for the day -- hour+?). We tried creating a .zip file of the repository but then unzipping would take even longer.

无论如何,快进到 USB3 并且情况有了很大改善.使用 32GB USB3.0 驱动器,存储库需要大约 4:30 才能完全检出.我很高兴地报告,在带有 3.0 驱动器和 3.0 卡的 USB 密钥上工作终于合理"了.

Anyhow, fast-forward to USB3 and things are vastly improved. With a 32GB USB3.0 drive the repository takes about 4:30 to check out completely. I am happy to report that it is finally "reasonable" to work on a USB key with a 3.0 drive and 3.0 card.

问题:是否还有其他工作流程更改可以帮助简化和/或加快此过程?

我已经看到使用 Bazaar、Git 等(即分布式版本控制系统)作为 SVN 的前端接口的建议,以便您可以拥有您的存储库和所有它的伟大荣耀-去和:

I have seen suggestions for using Bazaar, Git, etc. (i.e. a distributed version control system) as merely a front-end interface to SVN so that you can have your repository-and-all-its-great-glory on-the-go and:

A) 减小SVN checkout..."操作的大小

A) reduce the size of the "SVN checkout..." operation

B) 加快更新/提交操作

B) speed up the update/commit operation

C) 继续与其他 TortoiseSVN<->SVN Server 用户一起快乐地工作

C) continue working alongside other TortoiseSVN<->SVN Server users in happiness

但我不确定这是否会使结账速度更快.诚然,既然已检出存储库,它只是更改较小文件集的问题.但是检查整个分支仍然是一个问题.

But I am not sure if this will make checkouts any faster. Granted, now that the repository is checked out it's only a matter of smaller sets of changed files. But checking out an entire Branch is still an issue.

从 USB 密钥使用 Subversion

2GB USB 驱动器上的版本控制

https://superuser.com/questions/40283/recommendations-for-usb-flash-drive-fast-at-writing-small-files

推荐答案

是的,将整个 svn 树检出到 USB 磁盘上仍会创建所有小文件.使用 bazaar,您可以在不检查实际文件的情况下进行分支,即所有内容只进入几个大包文件:

Yes checking out the whole svn tree onto the usb disk will still create all the small files. With bazaar you can branch without making a checkout of the actual files i.e. all the content only goes into a couple of big pack files:

bzr branch --no-tree svn://<your-repo> <yourusbdrive>

在您的家用计算机上,您可以检查该分支,这将创建一个包含所有小文件的工作树,并将直接提交到您的 USB 驱动器:

On your home computer you can make a checkout of that branch which will create a working tree with all the little files, and will commit directly to your usb drive:

bzr checkout <yourusbdrive> <localproject>

这篇关于USB 3.0 密钥上的大型 SVN 存储库 - 如何加速和简化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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