~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/index.py

  • Committer: Alexander Belchenko
  • Date: 2007-10-04 05:50:44 UTC
  • mfrom: (2881 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2884.
  • Revision ID: bialix@ukr.net-20071004055044-pb88kgkfayawro8n
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
            the most efficient order for the index.
325
325
        """
326
326
        if 'evil' in debug.debug_flags:
327
 
            trace.mutter_callsite(2,
 
327
            trace.mutter_callsite(3,
328
328
                "iter_all_entries scales with size of history.")
329
329
        if self._nodes is None:
330
330
            self._buffer_all()
496
496
        """
497
497
        self._indices = indices
498
498
 
 
499
    def __repr__(self):
 
500
        return "%s(%s)" % (
 
501
                self.__class__.__name__,
 
502
                ', '.join(map(repr, self._indices)))
 
503
 
499
504
    def insert_index(self, pos, index):
500
505
        """Insert a new index in the list of indices to query.
501
506
 
615
620
            efficient order for the index (in this case dictionary hash order).
616
621
        """
617
622
        if 'evil' in debug.debug_flags:
618
 
            trace.mutter_callsite(2,
 
623
            trace.mutter_callsite(3,
619
624
                "iter_all_entries scales with size of history.")
620
625
        if self.reference_lists:
621
626
            for key, (absent, references, value) in self._nodes.iteritems():