~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: John Arbash Meinel
  • Date: 2009-09-24 19:26:45 UTC
  • mto: (4634.52.3 2.0)
  • mto: This revision was merged to the branch mainline in revision 4716.
  • Revision ID: john@arbash-meinel.com-20090924192645-hyy1ycnnk6u3j5j6
Catch a corner case that we were missing.
The CHKInventory tests were passing, but failed for test_inv because
we were passing None to _getitems(). That only failed for InternalNodes,
but we were using a structure that didn't have internal nodes.
So now the test is parameterized on a small CHKInventory page size
to force those things out into the open.

Show diffs side-by-side

added added

removed removed

Lines of Context:
277
277
 
278
278
See `Using hooks`_ in the User Guide for examples.
279
279
 
280
 
.. _Using hooks: ../user-guide/hooks.html
 
280
.. _Using hooks: ../user-guide/index.html#using-hooks
281
281
 
282
282
The class that contains each hook is given before the hooks it supplies. For
283
283
instance, BranchHooks as the class is the hooks class for