/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_revision_history.py

  • Committer: Robert Collins
  • Date: 2009-03-12 08:34:53 UTC
  • mto: This revision was merged to the branch mainline in revision 4133.
  • Revision ID: robertc@robertcollins.net-20090312083453-kvg3z61lgepkmh96
Provide a __len__ on HookPoint so that 'if somehookpoint' will behave as it did when they were lists.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
        cause the revision history to be cached.
125
125
        """
126
126
        branch, calls = self.get_instrumented_branch()
127
 
        # Lock the branch, set the revision history, then repeatedly call
128
 
        # revision_history.
129
127
        branch.set_revision_history([])
130
128
        branch.revision_history()
131
129
        self.assertEqual(['_gen_revision_history'], calls)