HUGE项目的分布式版本控制-可行吗? [英] Distributed version control for HUGE projects - is it feasible?

查看:59
本文介绍了HUGE项目的分布式版本控制-可行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们现在对SVN感到非常满意,但是 Joel的教程引起了我的兴趣.所以我想知道-在我们的情况下也可行吗?

We're pretty happy with SVN right now, but Joel's tutorial intrigued me. So I was wondering - would it be feasible in our situation too?

问题是-我们的SVN存储库很大.该软件本身已有15年的悠久历史,并且已经在几种不同的源代码控制系统中幸免于难.有超过68,000个修订(变更集),源本身占用了100MB以上的资源,我什至无法开始猜测整个存储库消耗了多少GB.

The thing is - our SVN repository is HUGE. The software itself has a 15 years old legacy and has survived several different source control systems already. There are over 68,000 revisions (changesets), the source itself takes up over 100MB and I cant even begin to guess how many GB the whole repository consumes.

然后问题很简单-整个存储库的克隆可能要花很长时间才能完成,并且会占用远程磁盘上的磁盘空间.而且由于分布式版本控制的重点是要拥有所需的存储库,因此我开始产生疑问.

The problem then is simple - a clone of the whole repository would probably take ages to make, and would consume far more space on the drive that is remotely sane. And since the very point of distributed version control is to have a as many repositories as needed, I'm starting to get doubts.

Mercurial(或任何其他分布式版本控制)如何处理?还是它们无法用于如此庞大的项目?

How does Mercurial (or any other distributed version control) deal with this? Or are they unusable for such huge projects?

添加的内容:要澄清-整个事情是项目的一个整体野兽,可编译为单个.EXE且无法拆分.

Added: To clarify - the whole thing is one monolithic beast of a project which compiles to a single .EXE and cannot be split up.

添加的2:第二个想法-Linux内核存储库使用git,可能比我的大一个数量级或两个数量级.那么他们如何使它工作呢?

Added 2: Second thought - The Linux kernel repository uses git and is probably an order of magnitude or two bigger than mine. So how do they make it work?

推荐答案

100MB的源代码小于Linux内核. Linux内核2.6.33和2.6.34-rc1之间的Changelog具有6604提交.您的存储库规模听起来并不吓我.

100MB of source code is less than the Linux kernel. Changelog between Linux kernel 2.6.33 and 2.6.34-rc1 has 6604 commits. Your repository scale doesn't sound intimidating to me.

  • 未从.tar.bz2归档文件中解压缩的Linux内核2.6.34-rc1:445MB
  • 从Linus主树中检出Linux内核2.6头:827MB

两倍,但仍然是我们所有人都拥有的大硬盘.

Twice as much, but still peanuts with the big hard drives we all have.

这篇关于HUGE项目的分布式版本控制-可行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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