Changeset [94fa128bfb3a] by adgar

April 25th, 2010 @ 09:28 PM

Added a LazyIndex subclass, as well as some test cases to make sure it does lazy things.

It avoids reading in entire index files if they are greater than 125kb in size and not inline.

No idea if this is how HG does it but it seems OK to me for now.
http://bitbucket.org/carbonica/amp/changeset/94fa128bfb3a/

Committed by adgar

  • M lib/amp/repository/mercurial/revlogs/index.rb
  • M test/revlog_tests/hugenotinline.i
  • M lib/amp.rb
  • M test/revlog_tests/test_revlog.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Rethink Version Control.- http://amp.carboni.ca/

Amp aims to put control of version-control software in your hands as a developer. The entire system is written in Ruby (with C extensions to improve performance), and aims to implement all major VCS's in Ruby. Currently, Mercurial is implemented.

Other features:
Commands are first-class members of the system - drop in an "Ampfile" in your repository, and you can add commands to amp in the same manner you add commands to rake (only with far, far more power!)
Documentation is one of our biggest priorities. We require all methods to be documented - even comically simple ones.
Heavy testing.
Multiple "workflows" - use git's commands to power a mercurial repository.
Add hooks/callbacks in minutes.

Shared Ticket Bins