Changeset [4df176cc0c7a] by adgar

April 26th, 2010 @ 01:42 AM

Lots of cleanup regarding revlog code.

Moved some "support" functions to proper places inside the index class, and gave
IndexEntry the "true_offset" method. Proper placement of responsibilities there.
Same with "get_version" going into the index class. These are all remnants of
the mercurial's not-so-OO design.
http://bitbucket.org/carbonica/amp/changeset/4df176cc0c7a/

Committed by adgar

  • M lib/amp/repository/mercurial/revlogs/index.rb
  • M lib/amp/repository/mercurial/revlogs/revlog.rb
  • M lib/amp/repository/mercurial/repo_format/journal.rb
  • M lib/amp/repository/mercurial/revlogs/revlog_support.rb
  • M lib/amp.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