<p>Is there a distributed version control system (git, bazaar, mercurial, darcs etc.) that can handle files larger than available RAM?</p>

<p>I need to be able to commit large binary files (i.e. datasets, source video/images, archives), but I don't need to be able to diff them, just be able to commit and then update when the file changes.</p>

<p>I last looked at this about a year ago, and none of the obvious candidates allowed this, since they're all designed to diff in memory for speed. That left me with a VCS for managing code and something else ("asset management" software or just rsync and scripts) for large files, which is pretty ugly when the directory structures of the two overlap.</p>

[{'answer_id': 70444, 'author': 'pobk', 'author_id': 7829, 'author_profile': 'https://Stackoverflow.com/users/7829', 'pm_score': 2, 'selected': False, 'text': '<p>I think it would be inefficient to store binary files in any form of version control system.</p>\n\n<p>The better idea would be to store meta-data textfiles in the repository that reference the binary objects.</p>\n'}, {'answer_id': 70465, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>Does it have to be distributed?  Supposedly the one big benefit subversion has to the newer, distributed VCSes is its superior ability to deal with binary files.</p>\n'}, {'answer_id': 71464, 'author': 'ddaa', 'author_id': 11549, 'author_profile': 'https://Stackoverflow.com/users/11549', 'pm_score': 3, 'selected': False, 'text': '<p>No free distributed version control system supports this. If you want this feature, you will have to implement it.</p>\n\n<p>You can write off git: they are interested in raw performance for the Linux kernel development use case. It is improbable they would ever accept the performance trade-off in scaling to huge binary files. I do not know about Mercurial, but they seem to have made similar choices as git in coupling their operating model to their storage model for performance.</p>\n\n<p>In principle, Bazaar should be able to support your use case with a plugin that implements tree/branch/repository formats whose on-disk storage and implementation strategy is optimized for your use case. In case the internal architecture blocks you, and you release useful code, I expect the core developers will help fix the internal architecture. Also, you could set up a feature development contract with Canonical.</p>\n\n<p>Probably the most pragmatic approach, irrespective of the specific DVCS would be to build a hybrid system: implement a huge-file store, and store references to blobs in this store into the DVCS of your choice.</p>\n\n<p>Full disclosure: I am a former employee of Canonical and worked closely with the Bazaar developers.</p>\n'}, {'answer_id': 2545233, 'author': 'pablo', 'author_id': 72456, 'author_profile': 'https://Stackoverflow.com/users/72456', 'pm_score': 2, 'selected': False, 'text': '<p>Yes, <a href="http://www.plasticscm.com" rel="nofollow noreferrer">Plastic SCM</a>. It\'s distributed and it manages huge files in blocks of 4Mb so it\'s not limited by having to load them entirely on mem at any time. Find a tutorial on DVCS here: \n<a href="http://codicesoftware.blogspot.com/2010/03/distributed-development-for-windows.html" rel="nofollow noreferrer">http://codicesoftware.blogspot.com/2010/03/distributed-development-for-windows.html</a></p>\n'}, {'answer_id': 7991722, 'author': 'joelhardi', 'author_id': 11438, 'author_profile': 'https://Stackoverflow.com/users/11438', 'pm_score': 5, 'selected': True, 'text': '<p>It\'s been 3 years since I asked this question, but, as of version 2.0 Mercurial includes the <a href="https://www.mercurial-scm.org/wiki/LargefilesExtension" rel="nofollow noreferrer">largefiles extension</a>, which accomplishes what I was originally looking for:</p>\n\n<blockquote>\n  <p>The largefiles extension allows for tracking large, incompressible binary files in Mercurial without requiring excessive bandwidth for clones and pulls. Files added as largefiles are not tracked directly by Mercurial; rather, their revisions are identified by a checksum, and Mercurial tracks these checksums. This way, when you clone a repository or pull in changesets, the large files in older revisions of the repository are not needed, and only the ones needed to update to the current version are downloaded. This saves both disk space and bandwidth.</p>\n</blockquote>\n'}, {'answer_id': 11086272, 'author': 'Catskul', 'author_id': 106797, 'author_profile': 'https://Stackoverflow.com/users/106797', 'pm_score': 2, 'selected': False, 'text': '<p>BUP might be what you\'re looking for. It was built as an extension of git functionality for doing backups, but that\'s effectively the same thing. It breaks files into chunks and uses a rolling hash to make the file content addressable/do efficient storage.</p>\n\n<ul>\n<li><a href="https://github.com/bup/bup" rel="nofollow">https://github.com/bup/bup</a></li>\n<li><a href="http://blogs.kde.org/node/4440" rel="nofollow">http://blogs.kde.org/node/4440</a></li>\n</ul>\n'}, {'answer_id': 44981876, 'author': 'Eugene Bezrouchkin', 'author_id': 7877760, 'author_profile': 'https://Stackoverflow.com/users/7877760', 'pm_score': 0, 'selected': False, 'text': '<p>I came to the conclusion that the best solution in this case would be to use the ZFS.</p>\n\n<p>Yes ZFS is not a DVCS but:</p>\n\n<ul>\n<li>You can allocate space for repository via creating new FS</li>\n<li>You can track changes by creating snapshots</li>\n<li>You can send snapshots (commits) to another ZFS dataset</li>\n</ul>\n'}]
['https://Stackoverflow.com/questions/70392', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/11438/']